New boy -easy question - doing a tutorial and the compile and run work but the only time I see the program partially running is when I put in a cin - I have looked but I cannot find how to put in a pause and allow me to see the program on the screen - presently it just goes too fast to see the output.
Thanks

IT DEPENDS UPON WHICH C++ U R USING
IF U R USING TURBO C++ THEN THE
getch();
COMMAND WOULD HELP U TO HOLD THE SCREEN TILL U PRESS A KEY

FOR DEV C++ I THINK IT IS
system("pause")
but i`m not sure about it
try it.
good luck

for C

getchar(): // wait, not totally portable

for C++

cin.get(); // wait

Caveat, if a lose return is floating about, like after an input you might have to double line it.

What is not portable about getchar?

Sorry Dave,
I am getting old. Got it confused with getch(). The C function getchar() should be totally portable.

This question has already been answered. Start a new discussion instead.