RE: [Dev-C++] Nead help with endl and...
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <Mat...@Ve...> - 2005-07-15 17:21:53
|
endl flushes the buffer inside of cout. It buffers stuff sent to it so that it does not waste time doing tons of tiny updates, and it does one big update instead. --Matt -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of yakir arbib Sent: Friday, July 15, 2005 10:10 AM To: dev...@li... Subject: [Dev-C++] Nead help with endl and... Hi I wonder what's the diferents between \n; and <<endl; Don't they both do the same thing of creating a new line in the screen?,like if I write: Cout << "hi\n"; Or: Cout << "hi"<<endl; And another question : Can I write this line : Cout << "I like music!"<< what's happening hear<<"wow it's very hot today\n"; Is this line right? Thanks yakir ___________________________________________________________________ The information contained in this message and any attachment may be proprietary, confidential, and privileged or subject to the work product doctrine and thus protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify me immediately by replying to this message and deleting it and all copies and backups thereof. Thank you. |