getting an espacial part of a string in c++
<p>how can I get an especial part of a string or an array or a vector in C++?
in python it is in this way:</p>

<pre><code>a = "hello"     #string
b = [1,2,3,4,5]     #list
a[1:4]     #from index 1 to 4
b[2:4]     #from index 2 to 4
</code></pre>

<p>result:</p>

<pre><code>"ell"
[3,4]
</code></pre>

<p>is there any such syntax for C++?</p>
