Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- int main()
- {
- ifstream fin;
- ofstream fout;
- fin.open("in.txt", ios::in);
- fout.open("out.txt", ios::out);
- int a, b;
- fin >> a >> b;
- fout << a + b << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement