Thread
:
Dev c++
View Single Post
Feb 22nd, 2005, 2:43 AM
#
21
Dietrich
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power:
4
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
View Public Profile
Find More Posts by Dietrich