Ok I have a Q related to the password problem I reported earlier.
I am using the same program but I want it to shutdown the computer if the password is wrong. Is there any way I can do this? I can make a shortcut that restarts the computer by making a new shortcut and pasteing this in the command line C:\windows\rundll.exe user.exe,exitwindowsexec . I wonder if I could somehow incorporate this into my password program. I can make the program run on startup, therefore creating a blockade, to say, keep youger siblings off when you don't want them in your room while you are trying to do something...
char *t=new char;
char *x=new char;
cout<<"Enter password, please: ";
cin.getline(t, 20, '\n');
if (!strcmp(t, x))
//This is where I want the shutdown to be...