But this is not good, beacuse you still have to press a key three times (first you enter a character, then you press "enter" and the third one is a getch() function). Just use a getch() function.