在main函数第一句添加下面。

freopen("inputfile","r",stdin);

创建一个inputfile,放project根文件夹下。


注意添加:

#include<cstdio>


做ACM题目的时候实用。

相关文章:

  • 2022-01-25
  • 2022-02-18
猜你喜欢
  • 2022-01-11
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2021-04-01
  • 2022-12-23
  • 2021-11-29
相关资源
相似解决方案