title: Reading input in c++ and assign to different variables
body: <p>I am a c++ beginner. I am trying to grab some inputs from console. myconsole commmands are in "action parameter" formation</p>
  
  <ul>
  <li>Request a</li>
  <li>Create b 1</li>
  <li>Destroy c </li>
  </ul>
  
  <p>Base on the input "Request" "Create" and "Destroy" then my program will decide which function to process. i know that i can use cin >> variable to do this. i made some research and come out the follow </p>
  
  <pre><code>    string action;
      while(true){
           cin &gt;&gt; action;
           cout &lt;&lt; action &lt;&lt; endl;
      }
  </code></pre>
  
  <p>Now the problem is i can only assign input to one variable "action", how can i assign input to another variable "parameter" and note the parameters maybe in string and integer datatype.</p>
  
  <p>Thanks for help.</p>