title: C++ Converting a string of integers into an array of integers?
body: <p>I'm reading in a line of input from a file such as "5 8 12 45 8 13 7". </p>
  
  <p>Could I put these integers directly into an array, or must I put them into a string first?</p>
  
  <p>If it's mandatory to initially use a string, how would I convert this string of integers into an array? </p>
  
  <p>input: "5 8 12 45 8 13 7" => into an array as such: {5,8,12,45,8,13,7}</p>