C语言文件写入运用

    xiaoxiao2021-03-25  15

    #include<stdio.h> int main () { /* freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); int a; scanf("%d", &a); printf(,"%d",a);*/ /* FILE *fin, *fout; fin = fopen("input.txt", "rb"); fout = fopen("output.txt", "wb"); int a; fscanf(fin, "%d", &a); fprintf(fout ,"%d",a); fclose(fin); fclose(fout); */ return 0; }
    转载请注明原文地址: https://ju.6miu.com/read-200318.html

    最新回复(0)