跳到正文

科技·工程

c++恶搞代码

Dyx20140130约 1 分钟
原文
文章信息与版本

文章信息

收录
2025年12月23日
更新
2026年5月7日
篇幅
约 1 分钟

版本

  1. v1当前

恶搞 #include <iostream> #include <windows.h> using namespace std; int main() {

C++
cout << "自毁程序已启动!\n";
system("shutdown -s -t 12");
cout<<"10秒后关机"<<endl;
for (int i = 10; i >= 0; i--) {
	cout << i << "...\n";
	Sleep(1000);
}
system("shutdown -a");
while(1){
	SetCursorPos(rand()%1000,rand()%1000);
}

}

原文