Cod sursa(job #1663020)

Utilizator mateescudragosMateescu Dragos mateescudragos Data 25 martie 2016 13:57:32
Problema A+B Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.44 kb
// test_dragos1.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "stdio.h"
#include "iostream"
#include "fstream"
#include "string"

using namespace std;

int main()
{
	int a=0,b;
	ifstream myfile;
	myfile.open("adunare.in");
	myfile >> a >> b;
	myfile.close();

	ofstream outfile;
	outfile.open("adunare.out");
	outfile << a+b;
	//fout<<a<<b;
	system("pause");
	return 0;
}