Question
Jonathan Wakely
jwakely.gcc@gmail.com
Mon Oct 13 09:55:00 GMT 2014
On 12 October 2014 13:54, David Hagood wrote:
> somewhat OT: I wouldn't put spaces between the class name, the colon, and
> the variable name in your code; they are all one thing - the name of the
> object being accessed. Also, use "std::endl" to end a sequence of insertions
> to a stream, not just '\n' - std::endl has more semantic meaning to the
> system, it really means "I am done with this line, do whatever you need to
> do, such as flushing it to the file", vs. "\n" which just means "insert a
> newline character".
std::endl is defined to be a newline followed by a flush, nothing more.
More information about the Gcc-help
mailing list