Cod sursa(job #469362)
Utilizator | Data | 7 iulie 2010 17:39:30 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
int a,b;
ifstream f;
ofstream g;
f.open("input.txt");
g.open("output.txt");
f>>a>>b;
if( f.is_open() )
g<<a+b;
f.close();
g.close();
return 0;
}