Cod sursa(job #123988)
Utilizator | Data | 17 ianuarie 2008 20:34:30 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | c | Status | done |
Runda | Arhiva de probleme | Marime | 0.17 kb |
#include<fstream.h>
void main()
{
int a,b,s;
fstream f1 ("a+b.in", ios::in);
fstream f2 ("a+b.txt", ios::out);
f1>>a>>b;
s=a+b;
f2<<s;
f1.close();
f2.close();
}