title: C++ how to append char and integer to string
body: <p>how to append char and integer to string in C++ programmin</p>
  
  <p>for example,</p>
  
  <pre><code>int value_of_int = 100;
  char value_of_char[20] = "HELLO";
  string result_line;
  
  result_line &lt;&lt; value_of_int;
  result_line &lt;&lt; value_of_char;
  
  vector&lt;string&gt; result_set;
  result_set.push_back(result_line);
  </code></pre>
  
  <p>the value of int and char will be changed and want to save <code>vector&lt;string&gt;.</code></p>