title: How to add user input into a 2D array
body: <p>I'm trying to get get user input, which is stored in an array (eightBit[]), and then add that to a 2D array (board).  The user is supposed to enter 8 numbers, for an example:
  Byte 1: 1
  Byte 2: 2
  etc...
  and the output is supposed to look like:</p>
  
  <pre><code>1 2 3 4
  5 6 7 8
  </code></pre>
  
  <p>however this is the output I get:</p>
  
  <pre><code>8 8 8 8
  8 8 8 8
  </code></pre>
  
  <p>Any idea why its repeating only the last numbered entered?  Part of my code is below, any help would be appreciated.</p>
  
  <pre><code>cout &lt;&lt; "Enter a pattern of eight bits:" &lt;&lt; endl;
              for(i = 0; i &lt; 8; i++){
                  cout &lt;&lt; "Byte " &lt;&lt; i+1 &lt;&lt; ": ";
                  cin &gt;&gt; eightBit[i];
              }
  
  int board[2][4];
  
              for(i = 0; i&lt;8; i++){
                  for(int j=0; j&lt;2; j++){
                  for(int k=0; k&lt;4; k++) {
                      board[j][k] = eightBit[i];
  
                  }
              }
  
              for(int j=0; j&lt;2; j++)
              {
                  for(int k=0; k&lt;4; k++) 
                  {
                      cout &lt;&lt; board[j][k]  &lt;&lt; "  ";
                  }
      cout &lt;&lt; endl;
  }
  </code></pre>