title: Storing space from user input in char array
body: <p>I am trying to store space <code>' '</code> as a recognized character directly into an array of chars by doing this:</p>
  
  <pre><code>char ** board = new char *[row];
  for (int r = 0; r &lt; row; r++) {
      board[r] = new char[col];
  }
  
  for (int r = 0; r &lt; row; r++) {
      cout &lt;&lt; "Enter input: " &lt;&lt; endl;
      cin &gt;&gt; board[r];
  
  }
  </code></pre>
  
  <p>But if I enter <code>' '</code> into the console it executes the <code>Enter input</code> line twice (when <code>row</code> is <code>3</code>3`) and then terminates. How would I go about storing input (including space character) directly into board?</p>