[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CppEndl
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CppEndl
(C++) std::endl
An abbreviation of end line. It is a stream manipulator, most commonly used in combination with std::cout, when the user want to show output on the next line.int main() { std::cout << "On the same "; std::cout << "line."; std::cout << "Not on the same " << std::endl; std::cout << "line."; std::cout << "Also not on the same\n"; std::cout << "line."; }
- include <iostream>
Code links
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
