can you give me an example with the result that's the computer reboot?
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().
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
Code: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;