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