Re: Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux