title: How do I format the output of a stringstream?
body: <p>I'm trying to get specific data from a stringstream.
  I'm reading this data from a file into the stringstream.</p>
  
  <pre><code>f 2/5/6 1/11/6 5/12/6 8/10/6 
  </code></pre>
  
  <p>Now when I want to read the data into variables, how do I do that?
  This is the format I want.</p>
  
  <pre><code>stringstream s(line);
  string tmpn;
  int t[4];
  int a, b, c, d, e;
  s &gt;&gt;tmpn &gt;&gt;a &gt;&gt;t[0] &gt;&gt;b &gt;&gt;c &gt;&gt;t[1] &gt;&gt;b &gt;&gt;d &gt;&gt;t[2] &gt;&gt;b &gt;&gt;e &gt;&gt;t[3] &gt;&gt;b;
  </code></pre>
  
  <p>So basically I want the 1st character and then each number in separate values without the slashes.</p>
  
  <p>How can I do this?
  I tried using sscanf but that was horrible!
  I'm using C++/CLI.</p>