Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <string>
- using namespace std;
- int main()
- {
- vector<string> MyVector;
- string word;
- while(true)
- {
- cin >> word;
- word == "shit" ? MyVector.push_back("non_shit") : MyVector.push_back(word);
- cout << MyVector.back() << ' ';
- }
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement