title: C++ reading in both an int and a string, possibly at the same time
body: <p>Fairly new to C++ here, but not new to programming. I was wondering if there is any simple way to get a user input such as "20 kg", the '20' being whatever the user input, and then the kg/lb/etc being, again, what the user input.
  The thing is, i need to use the integer part of the input in a calculation. 
  What i am thinking of having to do is read it all in as a String and then separate the int and string into separate variables. (i will have to use both the number and the measurement type in an equation)
  any help would be great. </p>
  
  <p>I'm not looking for any block of code, i merely want both an explanation of what i should do, and any key code snippets i may need to use.
  Thank you in advance!</p>