title: How to read space separated input in C++ When we don't know the Number of input
body: <p>I have read the data like the following</p>
  
  <pre><code>7
  1 Jesse 20
  1 Jess 12
  1 Jess 18
  3 Jess
  3 Jesse
  2 Jess
  3 Jess
  </code></pre>
  
  <p>Here the <code>7</code> is the number of input lines and i have to read the space separated input in c++, How can i read those input where we don't know how to separate them. this line contains string and integers.</p>