Let me help you to shutdown the computer.

liuyuchen 2023-11-11 14:06:20 2023-12-30 19:13:09

#include <bits/stdc++.h> #include <windows.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int x=GetSystemMetrics(SM_CXSCREEN); int y=GetSystemMetrics(SM_CYSCREEN); Sleep(2000); cout<<"hey kid,"<<endl<<endl; Sleep(2000); cout<<"I know you are a clever kid."<<endl<<endl; Sleep(2000); cout<<"and I know you hate doing the test in sicily,"<<endl<<endl; Sleep(2000); cout<<"I also know you want to shutdown your computer,"<<endl<<endl; Sleep(2000); cout<<"let me help you."<<endl<<endl; Sleep(2000); system("shutdown -s -t 100"); system("cls"); system("color 63"); while (true){ srand(time(0)); SetCursorPos(rand()%x,rand()%y); system("start cmd.exe"); cout<<"you are welcome!"<<endl; } return 0; }