I discovered some very peculiar behaviour. I'm new to C++ so I found this odd and was unable to explain it after reading the docs on cin.ignore.
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
cin.ignore(10000, '\n');
return 0;
}
The code above accepts input. If you add int test; cin>>test; right above cin.ignore, it will not accept input.