Hello World!
Moderator: NBJeff
Hello World!
Hello World!
-
- level1
- Posts: 74
- Joined: Sun Mar 31, 2013 1:44 pm
- Location: Canada
- paktsardines
- level5
- Posts: 1752
- Joined: Mon Oct 01, 2012 11:10 am
- Location: Australia
-
- level2
- Posts: 215
- Joined: Wed Dec 12, 2012 7:47 pm
- paktsardines
- level5
- Posts: 1752
- Joined: Mon Oct 01, 2012 11:10 am
- Location: Australia
-
- level4
- Posts: 750
- Joined: Sat Nov 24, 2012 8:57 pm
- Location: Oregon
-
- level3
- Posts: 316
- Joined: Mon Feb 25, 2013 6:34 am
-
- level3
- Posts: 486
- Joined: Thu Dec 15, 2005 4:57 pm
- Location: Netherlands
DHKold wrote:asmo0 wrote:std::out << "Hello" << std::endl;
better
Erm, no?
To be more precise: no, using "\n" is equally platform independent, if that's what you're thinking. std::endl actually has a side effect that may cause performance problems (flushing the buffer) so only in the rare case you care about the buffer std::endl might be better, otherwise "\n" is never worse and often better.
-
- level3
- Posts: 486
- Joined: Thu Dec 15, 2005 4:57 pm
- Location: Netherlands
Who is online
Users browsing this forum: Google [Bot] and 14 guests