Advertisement
MararOn

Untitled

Sep 19th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. bool search(std::string word, std::string fWord1, std::string fWord2) {
  2.   if((word.find(fWord1) != std::string::npos) && (word.find(fWord2) != std::string::npos)) {
  3.     return true;
  4.   }
  5.  
  6.   return false;
  7.    
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement