cin

C++ Problem with std::cin std::cout

I have a problem, the code is calmly compiled into the exe, and the first two inputs work perfectly, but when it comes time f ... ns, please ask. [23.03.2020 19:22] Corrected: Changed the names of the variables, for greater simplicity and understanding.

C++ question on CIN

There is a small program, everything is fine, but I ran into one strange difficulty. The code of a simple menu is attached, w ... a way, not for a beginner. I would be grateful if you can tell me the solution and at least briefly chew for tankers. Thanks!

Loop and cin.get function()

I am writing a program where every second the user must enter a certain character into the console.I use the cin.get(ch) func ... ions that read one character at a time,without waiting for the user to press Enter?Preferably from the standard C++libraries.