title: separating input into multiple variables in c++
body: <p>If I ask a user for an input that's separated by dashes, how can I store them into multiple variables? One for each part that is separated by the dashes.
  for example, this doesn't work.</p>
  
  <pre><code>cout &lt;&lt; "enter date" &lt;&lt; endl;
  // user inputs something like 11/11/1980
  cin &gt;&gt; month
  </code></pre>
  
  <p>I understand the input is stored in the iostream but how can I store whats after the first slash</p>