title: C++ find method not working
body: <p>I am quite new to c++ so my apologies for the lack if knowledge,however for some reason, my find method isn't working. Any help would be great, here is the code I'm using.</p>
  
  <p>www.pastie.org/9434690</p>
  
  <pre><code>//String s21 
  string s21 ="| o |";  
  
  if(s21.find("1")){
      cout &lt;&lt; "IT WORKS OMG " &lt;&lt; s21 &lt;&lt; endl;
  }
  else if(!s21.find("1")){
      cout &lt;&lt; "HASOSDKHFSIF" &lt;&lt; endl;
  }
  </code></pre>
  
  <p>Thanks</p>
  
  <p>Forgot to mention, the code always prints "IT WORKS"  even though there's no "o" in the string.</p>