title: C++ Best way to create a new string from index of char array?
body: <p>I got a chars array like</p>
  
  <pre><code>char ch[] = "This is a char array";
  </code></pre>
  
  <p>and I want to make a new string from index n to index j, for i.e. </p>
  
  <pre><code>string str = stringFromChar(ch, 0, 5); //str = 'This'
  </code></pre>