Advertisement
Infiniti_Inter

3.11

May 23rd, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <vector>
  4. #include <string>
  5. #include <map>
  6. using namespace std;
  7.  
  8.  
  9.  
  10. ifstream fin("input.txt");
  11. ofstream out("output.txt");
  12.  
  13. int main()
  14. {
  15.     while (fin.peek() != EOF)
  16.     {
  17.         string s;
  18.         getline(fin, s);
  19.         if (s.find(' ') == string::npos)
  20.             continue;
  21.         else
  22.             out << s << endl;
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement