#include<iostream>
using namespace std;
int main()
{
int a, b;
freopen("in.txt", "r", stdin);
freopen("out.txt", "w", stdout);
while (cin >> a >> b)
{
fclose(stdin);
fclose(stdout);
cout << a + b << endl;
}
return 0;
}
在 in.txt 中有 3 组数据
1 1
2 2
3 3
out.txt 啥也没有,为啥输出区也没有输出?