(C++) nl

January 7, 2018 · View on GitHub

 

 

 

 

 

(C++) nl

 

nl is a stream manipulator, similar to std::endl, except that nl does not flush the stream.

 


#include <iostream> //From http://www.richelbilderbeek.nl/CppNl.htm std::ostream& nl(std::ostream& os) {   return os << '\n'; } int main() {   std::cout     << "Hello"     << nl     << "world"     << nl; }