Cod sursa(job #416504)
Utilizator | Data | 12 martie 2010 21:07:46 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.33 kb |
#include <fstream>
#include <iostream>
using namespace std;
int 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;
return 0;
}