#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ifstream FileIn("INPUT.TXT");
if(!FileIn)
{
cout << "\nKhong tim thay tap tin INPUT.TXT";
system("pause");
return 0; // Kết thúc.
}
int a, b;
//FileIn>>a>>b;
FileIn>>a>>b;
FileIn.close();
ofstream FileOut("OUTPUT.TXT");
int Tong = a + b;
FileOut << Tong;
FileOut.close();
system("pause");
return 0;
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.