Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) std::ends

 

std::ends is a stream operation that adds a null ('\0') to a stream.

 

#include <iostream>

int main()
{
  std::cout << "A" << std::ends << "B";
}

 

Screen output:

 

Screen output

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict