搞怪程序ing
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
int main(int argc, char *argv[])
{?
// exit(1);?
srand(time(0));
? ?while(1){
? ? FILE* ft; char s[40]="D:\\",str[70]="告訴你了別打開(kāi),你不聽(tīng)!";
? ?// exit(1);
? s[3]=(char)(rand()%26+'A');
? ? s[4]=(char)(rand()%26+'a');
? ? s[5]=(char)(rand()%9+'0');
? ? strcat(s,".txt");
? ? printf("%s",s);
ft=fopen(s,"w+");
fwrite(str,sizeof(s),1,ft);
fclose(ft);
system("cls");
printf("正在加載,請(qǐng)耐心等待~~~~~\n");
? ? }
}
/*怎么才能湊夠二百字呢?*/



標(biāo)簽: