Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <vector>
- #include <string>
- #include <map>
- using namespace std;
- ifstream fin("input.txt");
- ofstream out("output.txt");
- int main()
- {
- while (fin.peek() != EOF)
- {
- string s;
- getline(fin, s);
- if (s.find(' ') == string::npos)
- continue;
- else
- out << s << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement