C
caidao
Unregistered / Unconfirmed
GUEST, unregistred user!
unit2.h
______________________________
class A
{
A(int i);
};
______________________________
unit2.cpp
______________________________
#include "Unit2.h"
A::A(int i)
{
}
______________________________
unit3.h
#include "Unit2.h"
class B: public A
{
B(int bb, int cc);
};
unit3.cpp
_________________________________
#include "Unit3.h"
B::B(int bb, int cc)
{
}
提示:
Cannot find default constructor to initialize base class 'A'
______________________________
class A
{
A(int i);
};
______________________________
unit2.cpp
______________________________
#include "Unit2.h"
A::A(int i)
{
}
______________________________
unit3.h
#include "Unit2.h"
class B: public A
{
B(int bb, int cc);
};
unit3.cpp
_________________________________
#include "Unit3.h"
B::B(int bb, int cc)
{
}
提示:
Cannot find default constructor to initialize base class 'A'