contains_word_in(...). Instead of if (words.find(cuv) != words.end()) you need if (propoz.find(cuv) != propoz.end()).| if I want this |
| four loops: The first reads the lines into vector1 using push_back(...). The second reads the lines into vector2 as above. The third iterates over vector1 (Ex.: for(size_t i = 0; i < vector1.size(); i++) vector1[i]....) The fourth (inside of the third, aka nested) iterates over vector2 (See ex. above). Use the string [vector1[i].]find[(vector2[j])] function to determine if your desired condition is met -> output. |