Thread: Dev c++
View Single Post
Old Feb 22nd, 2005, 2:43 AM   #21
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Smile

std::endl not only puts in a newline character '\n' but also flushes the output, a good thing to do.

Use cin.get() to make the console wait for a key to be pressed, it is by far the most portable code.
Dietrich is offline   Reply With Quote