Go back to Richel Bilderbeek's homepage.

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

 

 

 

 

 

(C++) std::cout

 

std::cout is a STL (global) character output stream and can be used to write text to screen.

 

std::cout is defined in the header file iostream and resides is namespace std.

 

#include <iostream>

int main()
{
  std::cout << "Hello World\n";
}

 

This results in the following output on the screen:

 

Hello World

 

 

 

 

 

std::cout code snippets

 

 

 

 

 

 

NDS std::cout on NDS

 

std::cout writes to the bottom screen by default.

 

 

 

 

 

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

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict