title: C++ cout cin string manipulation
body: <p>I'm trying to get a line as input from the command line. My problem is that I'm not getting the whole line, but it's being tokenized by space.</p>
  
  <p>So if I entered something such as "I like Math a lot" instead of getting </p>
  
  <pre><code>"you enterend: I like Math a lot"
  </code></pre>
  
  <p>I get the follwoing:</p>
  
  <pre><code>EDITING MODE: Enter a command
  i like Math a lot
  you entered i
  
  EDITING MODE: Enter a command
  you entered like
  
  EDITING MODE: Enter a command
  you entered Math
  
  EDITING MODE: Enter a command
  you entered a
  
  EDITING MODE: Enter a command
  you entered lot
  
  
  void enterEditingMode(){
      editingMode = TRUE;
      static string CMD = "\nEDITING MODE: Enter a command\n";
      string input;
      while(editingMode == TRUE){
          cout &lt;&lt; CMD;
          cin &gt;&gt; input;
          //we assume input is always correct
          // here we need to parse the instruction
          cout &lt;&lt; "you entered " &lt;&lt; input &lt;&lt;endl;
  </code></pre>