I work in a public place where I have to deal with NT 4.0 machines and I can't be logging in and out manually all the time so I was wondering if anyone could help me create a program that would use a username and pass to get out of the program. I am a newb to programming and on chapter 2 of Beginning C++ Game Programming.
Currently I have a makeshift program that passlocks it in fullscreen mode and doesn't display the text whilst typing the pass but you can get around it by using alt enter. Is there any way to stop that?
Heres what I have to far:
//Roarke Password Lock
using namespace std;
int leave = 0;
while (leave == 0)
cout << "\n\tRoarkes Computer Passlock.";
string user, pass;
cout << "\n\nUsername: ";
cin >> user;
cout << "\nPassword: ";
cin >> pass;
if((user == "Herc" && pass == "testing") || (user == "NumBer2" && pass == "hello"))
cout << "\n\n\t\tAccepted. Thank you."<<endl;
Yes, I picked up the fullscreen and the hide pass from these forums.
No, it doesn't have to be portable just has to work on 95/nt4workstation/98/xp/200/me.. basically all windows. Thanks