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.

getchar(): // wait, not totally portable

What is not portable about getchar?

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.