#include<iostream>
using namespace std;
int main()
{
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
int a,b;
cin >> a >> b;
cout << a+b;
return 0;
}
当我从终端(Mac)编译它时,它不会从 input.txt 读取含义,也不会写入 output.txt。问题是什么?