Best way to parse user input using getline?
<p>So I need a little help with understanding the best way of getting input from the user and storing it in 2 separate data types. What I want to do is take the input example:</p>

<pre><code>remove 44
</code></pre>

<p>I want to take the the first part "remove" and save it as a string to know which function I need to call, but then I want to take the 44 and save it as an int to be the input into said function. So far what I have is </p>

<pre><code>string In;
getline (cin, In);
</code></pre>

<p>Now should I change the getline to delimit the space to get two strings and if so how would I go about doing that or should I just take the whole input and create 2 substrings from it? </p>

<p>I know this is a pretty simple problem but I don't have much experience working with user input in C++. Any help would be greatly appreciated.</p>
