#include<iostream>
#include<windows.h>
#include<stdio.h>
#include<fstream>
using namespace std;
int main()
{
system("color 8F");
int result = MessageBox(MB_APPLMODAL,"请问是否要启动该程序?若启动,会占用较大cpu,此程序无毒!","来自(转载)的温馨提示",MB_ICONASTERISK|MB_YESNO);
if (result == IDNO)
{
return 0;
}
else
{
int x,y;
for (int a=0;a<10000;a++)
{
x = rand()%801;
y = rand()%601;
SetCursorPos(x,y);
}
for (int b=0;b<3;b++)
{
system("start notepad");
system("start calc");
system("start winver");
system("start cmd");
system("start Nslookup");
system("start ");
system("start cleanmgr");
system("start charmap");
system("start calc");
system("start calc");
system("start dxdiag");
system("start cmd");
system("start cmd");
system("start cmd");
system("start taskmgr");
system("start ");
system("start wiaacmgr");
system("start mspaint");
system("start mmc");
system("start ");
}
system("start dxdiag");
Sleep(2000);
system("taskkill /im notepad.exe") ;
system("taskkill /im calc.exe") ;
system("taskkill /im dxdiag.exe") ;
system("taskkill /im winver.exe") ;
system("taskkill /im cmd.exe") ;
system("taskkill /im Nslookup.exe") ;
system("taskkill /im cleanmgr.exe") ;
system("taskkill /im charmap.exe") ;
system("taskkill /im taskmgr.exe") ;
system("taskkill /im wiaacmgr.exe") ;
system("taskkill /im mspaint.exe") ;
system("taskkill /im mmc.exe") ;
for (int c=0;c<5;c++)
{
system("start notepad");
}
system("taskkill /im notepad.exe") ;
for (int d=0;d<5;d++)
{
system("start calc");
}
system("taskkill /im calc.exe") ;
for (int l=0;l<10;l++)
{
system("start calc");
}
system("taskkill /im calc.exe") ;
for (int m=0;m<15;m++)
{
system("start calc");
}
system("taskkill /im calc.exe") ;
for (int f=0;f<20;f++)
{
system("start calc");
}
system("taskkill /im calc.exe") ;
for (int n=0;n<10;n++)
{
system("start calc");
}
system("taskkill /im calc.exe") ;
for (int q=0;q<15;q++)
{
system("start cmd");
}
system("taskkill /im cmd.exe") ;
for (int r=0;r<20;r++)
{
system("start taskmgr");
}
system("taskkill /im taskmgr.exe") ;
for (int g=0;g<10;g++)
{
system("start mmc");
}
for (int h=0;h<10;h++)
{
system("start ");
}
ofstream out;
out.open("eason.bat");
out<<"dir/s";
out.close();
for (int i=0;i<5;i++)
{
system("start eason.bat");
}
ofstream oo;
oo.open("eason2.bat");
oo<<"tree";
oo.close();
for (int j=0;j<5;j++)
{
system("start eason2.bat");
}
//接下来我要把程序都关了
system("taskkill /im taskmgr.exe") ;
system("taskkill /im mmc.exe") ;
system("taskkill /im /f cmd.exe") ;
system("taskkill /im cmd.exe") ;
system("taskkill /im calc.exe") ;
for (int k=0;k<10000;k++)
{
x = rand()%801;
y = rand()%601;
SetCursorPos(x,y);
}
ofstream o;
o.open("easo.txt");
o<<"(づ ̄3 ̄)づ╭?~"<<'\n'<<"程序到此便结束了ヾ(=?ω?=)o"<<'\n'<<"制作者:(转载)"<<'\n'<<"bye!"<<'\a';
o.close();
system("start easo.txt");
for (int p =0;p<5;p++)
{
system("shutdown -s");
Sleep(100);
system("shutdown -a");
}
remove("eason.bat");
remove("eason2.bat");
remove("easo.txt");
result = MessageBox(MB_APPLMODAL,"程序已结束!","来自(转载)的温馨提示",MB_ICONASTERISK|MB_OK);
return 0;
}
}
0.0分
2 人评分
2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:654 |
C语言程序设计教程(第三版)课后习题10.7 (用指针求解)浏览:1542 |
C语言程序设计教程(第三版)课后习题11.5 (C语言代码)浏览:1029 |
C语言训练-列出最简真分数序列* (C语言代码)浏览:658 |
老王赛马 (C++代码)浏览:973 |
汽水瓶 (C语言代码)浏览:579 |
众数问题 (C语言代码)浏览:659 |
整数分类问题 为什么输出总是数字8啊浏览:451 |
C语言程序设计教程(第三版)课后习题5.5 (Java代码)浏览:563 |
管理学院的人数 (Java代码)浏览:560 |