Cod sursa(job #324938)
Utilizator | Data | 18 iunie 2009 03:27:34 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.17 kb |
#include<fstream.h>
void main()
{
ifstream x("datein.txt",ios::in);
ofstream y("dateout.txt",ios::out);
int s,a,b;
x>>a>>b;
s=a+b;
y<<s;
x.close();
y.close();
}