Go back to Richel Bilderbeek's homepage.

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

 

 

 

 

 

(C++) std

 

std is the namespace all STL functions and classes reside in, for example, the global output stream called 'cout'.

 

To call something from a certain namespace, write the namespace's name in front, followed by the scope operator, ::.

#include <iostream>

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

 

 

 

 

 

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

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict