#include <iostream>
#include <fstream>
#include <string>
#include <windows.h>
using namespace std;

int main()
{   

    system("restart -f -s -c \"messege please write here!\" -t 30");
    return 0;
}

Huh??

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.