title: how to split cin input
body: <p>I am facing problem to split my input in C++, for something similar to the Python split function.<br>
  The input is given as 1001-43 1003-45 1008-67 in different lines. I want to know how to take these inputs split by <code>'-'</code> and store them in different variables.</p>
  
  <p>In Python it's:</p>
  
  <pre><code>a, x = input().split('-')
  </code></pre>