Splitting a string using a single delimeter
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/236129/splitting-a-string-in-c">Splitting a string in C++</a>  </p>
</blockquote>



<p>I'm trying to split a single string object with a delimeter into separate strings and then output individual strings.</p>

<p>e.g The input string is firstname,lastname-age-occupation-telephone</p>

<p>The '-' character is the delimeter and I need to output them separately using the string class functions only.</p>

<p>What would be the best way to do this? I'm having a hard time understanding .find . substr and similar functions.</p>

<p>Thanks!</p>
