#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <map>
#include <string>
#include <cstring>
#include <ctime>
#define ms(a,b) memset(a,b,sizeof(a))
using namespace std;
typedef long long ll;
int main()
{
freopen("data.txt", "r", stdin); ///重定向文件的输入
freopen("output.txt", "w", stdout); ///重定向文件的输输出
int a;
while (cin >> a) ///从"data.txt"文件中读取数据
{
cout << a << endl; ///将数据写入到"output.txt"文件中
}
return 0;
}
读取文件中的数据作为输入和输出
最新推荐文章于 2022-09-12 16:34:18 发布