title: What method or way can I use to turn a string entered by the user to an integer in C++
body: <p>Let say the user input a value like so:
  1000 1345 890 896 as string how do I convert them to integer in C or C++. The reason being that I'm am creating some kind of number decoding system and I need all the numbers to be entered inline regardless of the length the space will denote the end of each number entered. </p>