不废话啦,直接给源程序!嘿嘿
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
int a,b;
ifstream fin("inputfile.in");
ofstream fout("outputfile.out");
fin >>a >> b;
fout << a+b;
fin.close();
fout.close();
return 0;
}
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
int a,b;
ifstream fin("inputfile.in");
ofstream fout("outputfile.out");
fin >>a >> b;
fout << a+b;
fin.close();
fout.close();
return 0;
}