c++恶搞代码

· · 科技·工程

恶搞

include <iostream>

include <windows.h>

using namespace std; int main() {

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);
}

}