Reading string from vector until whitespace in C++
<p>This is probably easy but im not sure how. I tried searching multiple websites and yes Google and couldn't find anything on this. </p>

<p>My vector <code>result[0]</code> looks like this</p>

<pre><code>A3 * * B4 * *
</code></pre>

<p>Declaration</p>

<pre><code>vector&lt;string&gt; result = v.formVectorFile("Prj3 Config.txt");    
</code></pre>

<p>I know that <code>cin</code> reads until whitespace so I was trying to use this to figure it out.
If I read straight from <code>fstream</code> I can read until whitespace, but im trying to do this with a string inside a vector and something like <code>result[0] &gt;&gt; s;</code> obviously doesnt work.</p>

<p>I need to read until it hits a whitespace then read the next one until whitespace. Etc...
So extract <code>A3</code> by itself. Operate on it then extract <code>*</code> etc...</p>
