title: How to fill a string variable with a string in c++
body: <p>I am trying to write a that randomly generates a string currently I have to use this simplified code to generate it:</p>
  
  <pre><code>for (int i = 0; i &lt; 10; i ++)
  {
      var += "bx";
  }
  </code></pre>
  
  <p>which sets var to "bx" 10 times. However, is there a string function to do this for me?</p>