Cod sursa(job #29286)
Utilizator | Data | 8 martie 2007 20:57:31 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.31 kb |
// Suma.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include<fstream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
int a,b;
ifstream f("adunare.in");
ofstream g("adunare.out");
f>>a>>b;
a+=b;
g<<a;
f.close();
g.close();
return 0;
}