阅读背景:

在我的“编写文件”程序中找不到该错误

来源:互联网 
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>

    int main()

    {

        char file_name[100];
        char insert[100];

        printf("Enter the file name:");
        scanf("%s", file_name);
        FILE *f = fopen((strcat(file_name, ".txt")), "a");
        printf("Insert:");
        scanf ("%[^\n]%*s", insert);
        fprintf(f, "%s", insert);

    }
    #include <stdio.h>
    #include <stdlib.h>



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: