Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool search(std::string word, std::string fWord1, std::string fWord2) {
- if((word.find(fWord1) != std::string::npos) && (word.find(fWord2) != std::string::npos)) {
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement