Simple string parsing without using boost
<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 working on an assignment for my C++ class and I was hoping I could get some help. One of my biggest problems in coding with C++ is parsing strings. I have found longer more complicated ways to parse strings but I have a very simple program I need to write which only needs to parse a string into 2 sections: a command and a data section. For instance: <code>Insert 25</code> which will split it into Insert and 25. </p>

<p>I was planning on using an array of strings to store the data since I know that it will only split the string into 2 sections. However I also need to be able to read in strings that require no parsing such as <code>Quit</code> </p>

<p>What is the simplest way to accomplish this without using an outside library such as boost? </p>
