fputs函数来骂人

    xiaoxiao2021-12-14  20

    #include<stdio.h> #include<process.h> #include<string.h> int main() { FILE *fp; char i[100]; strcpy(i,"群主是sb!,不服来打我啊"); char filename[30]; printf("please input filename:\n"); printf("先打文件地址在写文件名\n"); scanf("%s",filename); if((fp=fopen(filename,"w"))==NULL) { printf("can not open!\please press any key to continue\n"); getchar(); exit(0); } getchar(); fputs(i,fp); fclose(fp); return 0;

    }

    转载请注明原文地址: https://ju.6miu.com/read-971862.html

    最新回复(0)