Christian Mayer wrote: > > I wanted to point out the very big (internal) differnce of the ANSI C > style > > "string1" "string2" > > THat ends up as "string1string2" in a normal array of char > > vs. > > The C++ way: > > cout << "string1" << "string2" > > wich uses the operator<<() method. > > Both are valid and have their pro and cons. But they are fundamentally > different (and the later doesn't use the string concatenation), although
Yes, fair enough. It does seem a bit of a waste to have a separate function called. I think part of the reason for the existence of "endl" is this: If "endl" were enforced as the only legal way (i.e. if "\n" was made illegal in a future version of C++) then the string outputting functions would no longer have to scan for '\n' in the text that they output. Presently, each time they find '\n' they generally flush the stream output buffer, as well as to converting it to the local line ending character(s) where necessary. - Julian _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
