Cod sursa(job #974345)
Utilizator | Data | 16 iulie 2013 21:06:46 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.28 kb |
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
int a,b,s;
fstream f("c:\\Adunare.txt", ios::in);
f>>a;
f>>b;
s=a+b;
fstream g("C:\\Adunare.txt", ios::out);
g<<s<<" ";
f.close();
g.close();
system("PAUSE");}