C++ Converting string[4] to a string
<p>I want to change the last character of a word to be a string.</p>

<p>thanks!</p>

<p>EDIT: adding Jon's attempted answer as it provides some insight into what his functional requirement is:</p>

<pre><code>string x = "apple"; char c = apple[4]; string q = "";
string z = q+c;
</code></pre>
