title: C++ usage of strtok() on string
body: <p>I tried the following code from one of the guys who answer my previous <a href="https://stackoverflow.com/questions/11616379/c-how-to-get-substring-after-get-position-of-its-index">question</a>.</p>
  
  <p>My case is I am trying to get the value 1.2597 in this string, and my non functional requirement is to use <code>strtok</code> instead of <code>boost</code> which is recommend by many fellow coders here.</p>
  
  <p>However I got a issue casting result into a cstr* that can use the <code>strtok</code>.</p>
  
  <p>I want to know how I can get 1.2597, and echo it out with <code>strtok</code></p>
  
  <pre><code>string result= "CCY 1.2597 Down 0.0021(0.16%) 14:32 SGT [44]";
  
  char *first = strtok(result, ' ');
  char *second = strtok(0, ' ');
  </code></pre>