C++
endl
Inserts a new-line character and flushes the stream.Its behavior is equivalent to calling os.put('\n') (or os.put(os.widen('\n')) for character types other than char), and then os.flush().
Syntax:cout << endl;
Example:#include // std::cout, std::end
int main () {
int a=100;
double b=3.14;
std::cout << a;
std::cout << std::endl; // manipulator inserted alone
std::cout << b << std::endl << a*b; // manipulator in concatenated insertion
std::endl (std::cout); // endl called as a regular function
return 0;
}
Content
License.
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1460 / 158768832. Delta: 0.00253 с