Originally posted here by invader

urmm...doesnt getch() do the same ? Get a character from the user before continuing..
Thanks anyway, ammo
First, getch() isn't a standard call, and won't be availible on all systems; however, the standard C way of reading a single char from the standard input is getchar()
(int getchar())
which IS standard and can be found in stdio.h
(#include <stdio.h> ).

The exact equivalent with C++ streams would be:
cin.get()

both ways read a single char from the standard input and returns it...
but since we're not interested in what that character is going to be (ie: we're not gonna use it), we might as well do a
cin.ingore()
as er0k mentionned previously.

So both ways work, it's just a question of consistency:
if you're using iostreams for IO (cin, cout...) in your C++ prog, you should stick with it and use cin.ignore(); or cin.get();
if you're using stdio's (scanf(), printf()) you should stick with it and use getchar();

Ammo