title: std::cin into char array skips spaces?
body: <p>CODE:</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  #define BUFF 100
  
  using namespace std;
  
  int main(int argc, char* argv[])
  {
      char input[BUFF];
  
      cout &lt;&lt; "Input:\n&gt;";
  
      cin &gt;&gt; input;
  
      cout &lt;&lt; "\n\nOutput:" &lt;&lt; input;
  
      cin &gt;&gt; input;
      cin &gt;&gt; input;
  }
  </code></pre>
  
  <p>How come when you read input into a char array it skips the spaces? oh and there is 2 cin's(at the end) because it acts a little strange and exits if a space is entered when there is 1 cin...not sure why either.</p>
  
  <p>EG</p>
  
  <p>i enter <code>cup cake</code> and it outputs <code>cup</code></p>