title: Turn code into an Array and Display
body: <p>How can I turn this into an array? I need a board to show blank spaces and when the user enters it gets filled with a X or an O by another function. The current board works I would like to make it into a array[3][3] and display the contents of the array.</p>
  
  <pre><code>void showboard(char &amp;squareOne, char &amp;squareTwo, char &amp;squareThree, char &amp;squareFour, char &amp;squareFive, char &amp;squareSix, char &amp;squareSeven,
      char &amp;squareEight, char &amp;squareNine)
  {
  
  
   cout &lt;&lt; squareOne &lt;&lt; "|" &lt;&lt; squareTwo &lt;&lt; "|" &lt;&lt; squareThree &lt;&lt; endl
    &lt;&lt; "-+-+-"&lt;&lt; endl
    &lt;&lt; squareFour &lt;&lt; "|" &lt;&lt; squareFive &lt;&lt; "|" &lt;&lt; squareSix &lt;&lt; endl
    &lt;&lt; "-+-+-"&lt;&lt; endl
    &lt;&lt; squareSeven &lt;&lt; "|" &lt;&lt; squareEight &lt;&lt; "|" &lt;&lt; squareNine &lt;&lt; endl;
   }
  }
  </code></pre>