Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- int main() {
- int a;
- int b;
- cout << "a = ";
- cin >> a;
- cout << "b = ";
- cin >> b;
- cout << endl;
- fstream fg("file.txt");
- while ( fg >> a >> b ) {
- fg << a << " " << b << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement