Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <fstream>
- using namespace std;
- /* Yeungnam University College in Korea
- http://secure.ync.ac.kr/ */
- int main()
- {
- int a, b, c;
- ifstream inStream;
- inStream.open("input.txt");
- ofstream outStream;
- outStream.open("output.txt");
- inStream >> a >> b;
- c = a + b ;
- outStream << a << " and " << b << " add up to " << c << ".";
- inStream.close();
- outStream.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement