title: Error 3 error C2447: '{' : missing function header (old-style formal list?)?
body: <p>The error that I am getting is coming from a { on the bottom, but did I do something wrong somewhere else that is causing the error?How can I fix this?</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include&lt;stdafx.h&gt;
  
  using namespace std;
  char Board[9];
  //Declare Functions
  
  int main()
  {
  
  char Board[9];
  
  //Values for playing board
  Board[0] = '0';
  Board[1] = '1';
  Board[2] = '2';
  Board[3] = '3';
  Board[4] = '4';
  Board[5] = '5';
  Board[6] = '6';
  Board[7] = '7';
  Board[8] = '8';
  
  }
  int showBoard();
  { //THIS IS WHERE THE ERROR IS COMING FROM
  cout &lt;&lt; endl;
  cout &lt;&lt; Board[0] &lt;&lt; "|" &lt;&lt; Board[1] &lt;&lt; "|" &lt;&lt; Board[2] &lt;&lt; endl;
  cout &lt;&lt; "-+-+-" &lt;&lt; endl;
  cout &lt;&lt; Board[3] &lt;&lt; "|" &lt;&lt; Board[4] &lt;&lt; "|" &lt;&lt; Board[5] &lt;&lt; endl;
  cout &lt;&lt; "-+-+-" &lt;&lt; endl;
  cout &lt;&lt; Board[6] &lt;&lt; "|" &lt;&lt; Board[7] &lt;&lt; "|" &lt;&lt; Board[8] &lt;&lt; endl;
  cout &lt;&lt; endl;
  }
  </code></pre>