title: Checking if strings are the same c++
body: <p>For my case, I have to check if 2 strings are the same. The probelm I'm getting, is that No matter what I input, I'm getting a true value regardless of what I put in.</p>
  
  <pre><code>bool Dictionary::checkIfWordExists(string input){
  for(int counter=0;counter&lt;234;counter++){
      if(input.compare(getWordFromDictionary(counter))){
          return true;
      }
  }
  return false;}
  </code></pre>
  
  <p>For testing purposes I used a do loop like this to type in stuff to test in comparison to the dictionary.txt file that I loaded.</p>
  
  <pre><code>do{
      cout&lt;&lt;"enter something you sexy beast"&lt;&lt;endl;
      string test;
      cin&gt;&gt;test;
      if(loadedDictionary.checkIfWordExists(test)){
          cout&lt;&lt;"yes"&lt;&lt;endl;
      }else{
          cout&lt;&lt;"no"&lt;&lt;endl;
      }
  }while(true);
  </code></pre>