求助存档功能
  • 板块灌水区
  • 楼主juruo5e59
  • 当前回复8
  • 已保存回复8
  • 发布时间2024/8/2 18:29
  • 上次更新2024/10/20 15:06:48
查看原帖
求助存档功能
866535
juruo5e59楼主2024/8/2 18:29

先放代码:

#include <bits/stdc++.h>
#define int long long
using namespace std;
signed main() {
	ios::sync_with_stdio(0);
	cin.tie(nullptr);
	cout.tie(nullptr);
	freopen("in.txt", "r", stdin);
	freopen("in.txt", "w", stdout);
	int pri = 100;
	cin >> pri;
	cout << pri << endl;
	fclose(stdin); fclose(stdout);
	freopen("CON", "r", stdin);
	freopen("CON", "w", stdout);
	cout << "wrew" << endl;
	cin >> pri;
	return 0;
} 

我用以上代码能正常存档读档,按照bdfs得到的方法转回控制台进行正常输入输出,能够正常输出,却不能正常读入,不知道是什么原因

若至文心一言也调不出来

2024/8/2 18:29
加载中...