I'm a programming newbie and need help understanding what the following code and paragraph is saying..
cin.get(); // add this statement
cin.get(); // and maybe this, too
return 0;
}
"The cin.get() statement reads the next keystroke, so this statement causes the program to wait until you press the Enter key. (No keystrokes get sent to a program until you press the Enter key.) The second statement is needed if the program otherwise leaves an unprocessed keystroke after its regular input. For example, if you enter a number, you'll type the number and then press enter. The program will read the number but leave the Enter keystroke unprocessed, and it then will be read by the first cin.get()"
I understand how the first statement is used, but I don't understand how the second statement is used.. I don't know what the paragraph is trying to say