Re: [Dev-C++] Nead help with endl and...
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2005-07-15 17:37:02
|
You can output multiple data items directly after each other. However, notice that when emitting text strings, each text string must be delimited with quotation marks, i.e. your output line is not valid since the middle text string isn't quoted. /Per W On Fri, 15 Jul 2005, yakir arbib wrote: > 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 > |