title: Problems with string index in C++
body: <p>How can I access the string index in C++?
  For example: if I have string variable name test and I want to access it from index number 5 to 9. How can I do that with C++?</p>
  
  <pre><code>string test;
  cout&lt;&lt;test[5:9];
  </code></pre>
  
  <p>I have try the above method but it does not work. Any suggestions? Thank you. </p>