View Code
#include<iostream>
using namespace std;

int main()
{
    freopen("God.txt","w", stdout);
    for(int i=0; i<10000; i++)
    {
        cout<<i<<",";
        if(i%30==0 && i!=0) cout<<endl<<endl;
    }
}

上面的freopen就是用来打表的了。

无语呀,到现在才明白。

第一个一定是:“文件名.txt”类似的。

第二个一定是:“w”。

第三个一定是:stdout。

后后两个无争议。第一个随便。

相关文章:

  • 2021-09-08
  • 2021-10-22
  • 2021-05-31
  • 2021-08-11
  • 2021-10-25
  • 2022-12-23
猜你喜欢
  • 2022-03-06
  • 2022-12-23
  • 2021-10-24
  • 2021-09-30
  • 2018-11-30
  • 2021-09-24
相关资源
相似解决方案