Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <vector>
- using namespace std;
- vector <string> funct(vector <string> kont, vector <string> wz){
- vector <string> zwroc;
- int rozmiarWZ = wz.size();
- int rozmiarKo = kont.size();
- for(int i =0; i<rozmiarKo;i++){
- for(int a =0; a<rozmiarWZ;a++){
- if(kont[i].find(wz[a]) != string::npos){
- }else{
- zwroc.push_back(kont[i]);
- }
- }
- }
- return zwroc;
- }
- int main()
- {
- vector <string> WyrazyZabronione;
- WyrazyZabronione.push_back("Dupa");
- vector <string> slowa;
- slowa.push_back("asd Dupa asdasd ");
- slowa.push_back("asDupa asdasd ");
- slowa.push_back("asd sdasd ");
- vector <string> z;
- z = funct(slowa,WyrazyZabronione);
- cout << z.size()<< endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement