can you give me an example with the result that's the computer reboot?
Printable View
can you give me an example with the result that's the computer reboot?
If you want to reboot then you have to ask the operating system to do it. Without knowing your operating system this is difficult. On windows check out winapi functions ExitWindowsEx() and InitiateSytemShutdown().
:DCode:std::cout << "Please press the CTRL+ALT+DEL" << std::endl;
// or the platform independant
std::cout << "Please press the 'reset' button on your computer." << std::endl;