Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <vector>
- using namespace std;
- int main()
- {
- std::vector< string > v;
- int c = 0;
- do
- {
- c++;
- string cadena;
- cout << "Introduce una linea:" << endl;
- cin >> cadena;
- cadena.resize( (size_t) 15);
- v.push_back(cadena);
- } while (c < 2);
- cout << "El texto total es:" << endl;
- for (vector<string>::iterator it= v.begin(); it < v.end(); ++it )
- {
- cout << *it << endl;
- }
- while (true)
- {
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement