C++: string.find finds a char in a string only if its on pos1
<p>I want to find a char (expected_char) in a string (word) by</p>

<pre><code>if (word.find(expected_char)==true)
{
    cout &lt;&lt; "You got one! It's on pos" &lt;&lt; word.find(expected_char);
}
else
{
...
}
</code></pre>

<p>If my string is e.g. "abcd" and i search for "c" else will be executed; if i search for "b" the if statement will be executed.</p>
