freopen输入重定向

#include<bits/stdc++.h>
using namespace std;
int main()
{
	freopen("C:\\Users\\csg\\Documents\\VScode Files\\in.txt","r",stdin);
	string s;
	getline(cin,s);
	cout<<s;
	return 0;
}
 

rs所示,就那样用

猜你喜欢

转载自blog.csdn.net/csg3140100993/article/details/82313961
今日推荐