nevermind
nevermind
Last edited by seePLUSPLUSn00b; 09-29-2008 at 01:00 PM.
No real standard way to do it but include <conio.h> and use getch() in a while loop. Getch reads the keyboard input in a character-by-character method.
The problem is that, as twomers noted, the standard library facilities provide no way of doing what you want to do. <iomanip> will be of no use here. Consequently, your best bet with something simple is the non-standard getch() from the non-standard <conio.h> header.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
This has also been solved loads of times here, so search the forums and you'll find something.