Guest User

Untitled

a guest
Apr 19th, 2014
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     ifstream in("input.txt");
  8.     string foo;
  9.     while(in.good()){
  10.         in >> foo;
  11.         cout << foo << " ";
  12.         in >> foo;
  13.         cout << foo << '\n';
  14.         in >> foo;
  15.         cout << foo << " ";
  16.         in >> foo;
  17.         cout << foo << " ";
  18.         in >> foo;
  19.         cout << foo << '\n';
  20.     }
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment