Advertisement
Guest User

Untitled

a guest
Jul 27th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. #include <string>
  4.  
  5. using namespace std;
  6.  
  7.  
  8. int main()
  9. {
  10. vector<string> MyVector;
  11. string word;
  12. while(true)
  13. {
  14. cin >> word;
  15. word == "shit" ? MyVector.push_back("non_shit") : MyVector.push_back(word);
  16. cout << MyVector.back() << ' ';
  17. }
  18. return EXIT_SUCCESS;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement