How do I clear the cin buffer in C++?
Another possible (manual) solution is
cin.clear(); while (cin.get() != '\n') { continue; }
I cannot use fflush or cin.flush() with CLion so this came handy.