Cod sursa(job #416500)
Utilizator | Data | 12 martie 2010 21:05:36 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.32 kb |
#include <fstream>
#include <iostream>
using namespace std;
void main(){
const int max=2000000000;
int a,b;
char c;
char* pc=&c;
ifstream fin;
ofstream fout;
fin.open("adunare.in");
fin.getline(pc, max);
a = atoi(pc);
fin.getline(pc, max);
b = atoi(pc);
fout.open("adunare.out");
fout << a+b;
}