Hi,
I've run into a problem,
I have a switch-statement like this:
Shouldn't the cin.get(); pause the program until the uses presses a button?Code:switch(chMenu) { case 1: //Code break; case 2: //code cout << "Press a button to continue.." << endl; cin.get(); break; }
Does anybody have a solution to the problem?
Anything but system("pause");