Nope, it takes input two times :P The first is the character you type and the second is the newline character generated by the pressing of enter. Check it out like this: if you don't enter a character it takes two enter key-presses to quit the program.
you can use #include <iostream.h> and use (cin>>var;) to read from the keyboard the inf.
before the return use cin.get(); whit this yoou have press one key to exit of your program.