title: error C2143: syntax error : missing ';' before 'using'
body: <p>this is my header:</p>
  
  <pre><code>#ifndef HEADER_H
  #define HEADER_H
  
  class Math
  {
      private:
          static enum names {amin = 27 , ali = 46};
  
      public:
          static void displayMessage();
  
  }
  
  
  #endif // HEADER_H
  </code></pre>
  
  <p>and this is the header definition:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;iomanip&gt;
  #include "Header.h"
  
  using namespace std;
  
  void Math::displayMessage()
  {
      cout&lt;&lt;amin&lt;&lt;setw(5)&lt;&lt;ali&lt;&lt;endl;
  }
  </code></pre>
  
  <p>and this is the main:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include "Header.h"
  
  using namespace std;
  
  enum Math::names;
  
  int main()
  {
      Math::displayMessage();
  }
  </code></pre>
  
  <p>i got these errors:</p>
  
  <pre><code>error C2143: syntax error : missing ';' before 'using'  
  error C2143: syntax error : missing ';' before 'using'  
  </code></pre>
  
  <p>one of them is for main and the other is for header definition,
  i have encountered several time in my programming,
  could explain that for me in this situation,</p>
  
  <p>please help me </p>
  
  <p>best regards</p>
  
  <p>Amin khormaei</p>