title: Error when concatenating strings (C++)
body: <p>I am trying to create a string that points to a file and am getting this error:</p>
  
  <blockquote>
    <p>.../testApp.cpp:75: error: invalid operands of types 'const char*' and 'const char [5]' to binary 'operator+'</p>
  </blockquote>
  
  <p>Here is the line in question: </p>
  
  <pre><code>    string path = "images/" + i + ".png";        
  </code></pre>
  
  <p>This seems like a fairly simple issue, yet it confounds me. I also included the string header:</p>
  
  <pre><code>#include &lt;string&gt;
  using namespace std
  </code></pre>