+ 1
What does 'endl' mean?
this app did not learn that 'endl' after hello world?
3 Answers
+ 12
endl Inserts a new-line character and flushes the stream. (line feed and carriage return)
cout << endl;
eq.
cout << "\n";
cout << "Hi Didem " << endl << "I'm here to help you!" << endl;
cout << "Hi Didem\nI'm here to help you!\n";
Output:
Hi Didem
I'm here to help you!
(blinking cursor)
+ 2
ooohh yeahh thanks!
+ 2
ra