How do I construct a std::string with a variable number of spaces?
<p>If I have the following code:</p>

<pre><code>std::string name =   "Michael";
std::string spaces = "       ";
</code></pre>

<p>How would I programatically create the <code>spaces</code> string (a string with all spaces, the length matching the name variable)?</p>
