关于freopen与解绑输入输出流的顺序
  • 板块灌水区
  • 楼主Hor1zDPX
  • 当前回复7
  • 已保存回复7
  • 发布时间2024/10/25 21:06
  • 上次更新2024/10/25 21:42:35
查看原帖
关于freopen与解绑输入输出流的顺序
859840
Hor1zDPX楼主2024/10/25 21:06
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
	freopen("1.in","r",stdin);
	freopen("1.out","w",stdout);
	ios::sync_with_stdio(false);
	cin.tie(0);cout.tie(0);
  	//......
	return 0;
}

rt.

如果做题前先敲上上述代码是否有问题

2024/10/25 21:06
加载中...