跳到正文

leilei2

751744

在洛谷打开
资料、奖项与版本

资料

编号
751744
抓取

这个人不懒,写了很多东西

整人小妙招

C
#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;
}

还没有收录这位用户的文章。