title: Add forward slash to string
body: <p>I want to make a string "test/" but I can't add the slash after the initial string. Any idea why and how?</p>
  
  <pre><code>string imgpath="test";
  strcat(imgpath,"/");
  </code></pre>
  
  <p>This is what I've tried so far.
  I get </p>
  
  <pre><code>Error   1   error C2664: 'strcat' : cannot convert parameter 1 from 'std::string' to 'char *'
  </code></pre>
  
  <p>And another</p>
  
  <pre><code>imgpath="test"+"/";
  
  Error   1   error C2110: '+' : cannot add two pointers
  </code></pre>