title: String slicing in C++
body: <p>I am trying to slice the last four characters off a character array, and I tried the method that Python uses without success;</p>
  
  <pre><code>char *charone = (char*)("I need the last four")
  char *chartwo = charone[-4:]
  
  cout &lt;&lt; chartwo &lt;&lt; endl;
  </code></pre>
  
  <p>I would want this code to return:</p>
  
  <pre><code>four
  </code></pre>
  
  <p>But C/C++ doesn't seem to be that easy...</p>
  
  <p>Where could I find a simple alternative that will return the last four characters of one character array into another character array?</p>