![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#21 |
|
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. |
|
|
|
|
|
#22 |
|
Programming Guru
![]() |
Yea, but it outputs to screen and is ugly when running in terminals...
__________________
|
|
|
|
|
|
#23 | |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
Quote:
|
|
|
|
|
|
|
#24 |
|
Programming Guru
![]() ![]() |
http://www.freeprogrammingresources.com/
is a good website for tutorials etc, also not just for C++.
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#25 | |
|
Programming Guru
![]() |
Quote:
Hmm, i'm going to try that out... i thought it did. Thats cool.
__________________
|
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|