+ 2

what does the "endl" means

28th Sep 2016, 11:40 PM
Godfred
3 Respuestas
+ 12
endl is short for "end line", and sets the cursor on the next line. You can also use \n (the escape character for a new line) after the text your printing instead. Ex: cout << "Using endl" << endl; //is the same as cout << Using newline\n";
29th Sep 2016, 12:53 AM
Tamra
Tamra - avatar
+ 1
c++ language does not understand spaces , so to change the line or make difference between two lines you use it eg: cout<<"any text"endl; cout<<"any text";
4th Oct 2016, 1:40 AM
vivek kanesh
vivek kanesh - avatar
0
the c ++ can't use to new line to new character than we use endl ( a short form of end line) to use new line to new text
29th Sep 2016, 8:51 AM
Ansh
Ansh - avatar