Go back to Richel Bilderbeek's homepage.

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

 

 

 

 

 

(C++) std::exit

 

std::exit is an STL function to terminate the program. The argument in std::exit is the error code returned by the program.

 

#include <cstdlib>

void Quit()
{
  std::exit(0);
}

int main()
{
  Quit();
}

 

 

 

 

 

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

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict