Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<string>
- #include<vector>
- #include<windows.h>
- using namespace std;
- int main(){
- vector<string> uVec;
- string uInput;
- cin >> uInput;
- while(uInput != "x"){
- uVec.push_back(uInput);
- cin >> uInput;
- }
- for(unsigned int i = 0; i < uVec.size(); i++){
- cout << "VECTOR:";
- cout << uVec[i];
- cout << endl;
- }
- system("pause");
- return 0;
- }
Add Comment
Please, Sign In to add comment