C++: how to add int to current string in C++?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/191757/c-concatenate-string-and-int">C++ concatenate string and int</a>  </p>
</blockquote>



<p>Hi,</p>

<p>In C# I can write like this:</p>

<pre><code>int i = 0;
string text = "out.jpg";
while(true)
{
     i++;
     Object.write(i+text, stream);
}
</code></pre>

<p>But this is not true for C++. the problem is at: i + default.</p>

<p>How could I fix this in C++?</p>

<p>Thanks in advance. Your help is much appreciated!</p>
