class a: public b
{
   int func();
}int a::func()
{
  ....
}
???

解决方案 »

  1.   

    一般这样声明与定义,不知你要的是不是这个
    class a;  public b
    {
      func();
    }int a::func()
    {
    .....
    .....
    }
      

  2.   

    ShyWJB(家宝)的对,你那个是什么?我搞不明白
      

  3.   

    class error{
        void fun();
    };
    void error::fun(){
        HeapFree(AllMemory);
        return;
    }
    class fatalerror:public error{
        void ComputerCrash();    
    }
    void fatalerror::ComputerCrash(){
        error::fun();
        return;
    }