Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <fstream>
- #include <string>
- using namespace std;
- void main()
- {
- fstream input;
- input.open("text.txt", ios::in | ios::out);
- string line;
- vector<string> lines;
- while (getline(input, line))
- {
- lines.push_back(line);
- }
- vector<int>vec;
- vector<string>::iterator v = lines.begin();
- while (v != lines.end())
- {
- cout << *v << endl;
- v++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement