Is there a "Do Nothing" command in c++? As in, when you press the wrong key it just sits there and waits for the user to input the right key? It doesn't write anything, exit the program, or anything like that.
A common way is to read from stdin (usually the keyboard) within a while loop, with the condition checking what the user types and breaking the loop when they type the right thing.
I expect someone will come along soon to recommend system("PAUSE"); - it's worth looking that up to see why it's such a bad idea.