C++: Find method
<p>so if i were to enter patricia(don't worry im converting it toupper) that string would be loaded into my vector.
My question is about the find functions. i am counting down characters correct? so if i were to enter patricia and j would be on ABBOT, PATRICIA the value in comma would be 5. Ok im good so far, but what happens in my found variable? </p>

<pre><code>bool NameSearch::findFirstNames(vector&lt;string&gt; &amp;vsFirst, string name)
{ 

int j = 0;
bool bName = false;
vsFirst.clear();

while(j &lt; total)
{  
    int comma;
    comma = names[j].find(',');

            //Confused here
    int found = names[j].find(name, comma);

    if(found &gt; -1)  
    {
        vsFirst.push_back(names[j]);
        bName = true;
    }

        j++;
} 

return bName;
}
</code></pre>
