#include #include #include using namespace std; int main() { vector SSS; while (true) { // invite user to type strings, store them in the array cout << " ? "; string t; cin >> t; if (t == "end") break; SSS.push_back(t); } for (int i = 0; i < SSS.size(); i += 1) cout << SSS.at(i) << "\n"; }