prompt for pressing "enter"
I need to stop the output till one presses the <ENTER> key.
well , with BASIC I used to do this:
DO WHILE INKEY$ = ""
LOOP
with c++ , under DOS one could use
#include <stdlib.h>
#include <stdio.h>
int main()
{
system ("pause");
return 0;
}
but since I switched to Linux (and Kdevelop) all the old stuff is of no use.
another question: when I put a prompt with the cin >> something ; function how can I trap errors (eg a charachter instead of an int) ?
10x
Stefano Jodice
[email protected]