How to pass variable in C++ Sprintf 2nd(format) argument?
<p>I've been cracking heads on how to achieve this in C++:  </p>

<pre><code>string format = "what is your %s";  
new_string = sprintf(buffer, format, name);
</code></pre>

<p>Any help would be very much appreciated.</p>

<p>Thanks!</p>
