Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main() {
- ifstream object("input.txt");
- /*string str;
- while (getline(object, str)) {
- cout << "o : " << str << '\n';
- }*/
- stringstream st;
- st << object.rdbuf();
- cout << st.str() << '\n';
- string tmp = st.str();
- istringstream ss(tmp);
- while (ss >> tmp) {
- cout << tmp << '\n';
- }
- }
Add Comment
Please, Sign In to add comment