1. 程式人生 > >讀和寫

讀和寫

gpo can pen pre cpp stdout true class pos

    freopen("in.txt", "r", stdin);
    freopen("out.txt", "w", stdout);
    
    /*
      正常代碼的canf和printf
    */
    fclose(stdin);
    fclose(stdout);

  

讀和寫