Error While Compiling this C++ code
<p>I got the following error wwhile compiling this c++ code . What can be the reason behind this ?</p>

<pre><code>     # include &lt;iostream&gt;
     # include &lt;stdio.h&gt;
     # include &lt;conio.h&gt;

     using namespace std;

     class Foo
     {
      int a;
      public :
      virtual void Fun1(); 

      Foo()
      {a=5;}
     };

     Class X: public Foo   // Error class does not name a type
     {
      Foo f;
      public:
      void Fun1() { }       
      X()
      {
       memset(&amp;f,0x0,sizeof(f));
      }
     };

     int main()
     {
      X x; // Error 'X undeclared and expected ; before x, i guess because of first one
      getch();
      return 0;
      }
</code></pre>
