Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <string>
- using namespace std;
- int main()
- {
- string temp = "";
- string temp2 = "";
- vector<string> disliked;
- int i = 0;
- cout << "Podaj slowa ktorych nie lubisz:" << endl;
- while(cin >> temp)
- disliked.push_back(temp);
- cout << "Wpisz slowo:" << endl;
- while(cin >> temp2)
- {
- for(i = 0; i < disliked.size(); ++i)
- {
- if(temp2 == disliked[i])
- {
- cout << "Biippp!";
- break;
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment