2. Creating Project.
11 May 2020 | STL Programming Practice_1
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
ifstream f("data.in"); // reading a file named"data.in"
ofstream g("data.out"); // writing a program result of control input
int main()
{
int a, b, sum;
f>>a>>b;
sum = a + b;
g<<sum;
return 0;
}
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
ifstream f("data.in"); // reading a file named"data.in"
ofstream g("data.out"); // writing a program result of control input
int main()
{
int a, b, sum;
f>>a>>b;
sum = a + b;
g<<sum;
return 0;
}
Comments