bool FindS (string strMain, string strWord, int &pos) { if (strMain.find(strWord) == 'npos'){ //not found return (false); } else{ //found pos = strMain.find(strWord); //position return (true); } }