Is there a C++ function to turn off the computer? And since I doubt there is one (in the standard library, at least), what\'s the windows function that I can call from C++?
You can do this in Windows, by calling the ExitWindowsEx function.