String compare being weird
<p>Ive been racking my brain here:</p>

<pre><code>cout &lt;&lt; orig &lt;&lt; " * " &lt;&lt; count &lt;&lt; endl;
string check = multiply2(orig, count);
cout &lt;&lt; "Check was: " &lt;&lt; check &lt;&lt; " and number is: " &lt;&lt; number &lt;&lt; endl;
cout &lt;&lt; "the compare result: " &lt;&lt; check.compare(number) &lt;&lt;  endl;
if(check.compare(number) == 0)
{
  cout &lt;&lt; "wahoo it matches!!! we did it! " &lt;&lt; endl;
}
else
{
  cout &lt;&lt; "Doesnt Match " &lt;&lt; endl;
}
</code></pre>

<p>I'm expecting it to match and print <code>wahoo it matches!!! we did it!</code> but its instead saying it doesn't match.</p>

<p>Here is my output:</p>

<pre><code>1 * 900000
Check was: 900000 and number is: 90000
the compare result: 1
Doesnt Match
</code></pre>

<p>Anyone have idea why they arent matching?</p>
