Cod sursa(job #198447)
Utilizator | Data | 11 iulie 2008 15:30:33 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.19 kb |
#include<fsteam.h>
#include<iostream.h>
void main()
{fstream f("adunare.txt",ios::in);
fstream g("adunare.txt",ios::out);
int a,b;
f>>a>>b;
g<<a+b;
f.close();
g.close();
return 0;
}