title: How to seperate integers from input string and convert them to type int to allow calculations on them
body: <p>As <strong>Mehdi Algholipour</strong> wrote i wanted to</p>
  
  <p>1.Get string from input</p>
  
  <p>2.Separate input to Integer numbers</p>
  
  <p>3.Save them into Array</p>
  
  <pre><code>    cout &lt;&lt; "Give me some integers separated with space";
  
      cin &gt;&gt; string;     // example input 10 210 300 510
  
  
      //..some code that seperate input to integer numbers and save them to Array
  
  
      //EXPECTED RESULT: Array[0]=10 Array[1]=210 etc...
  </code></pre>