继承构造器
class A{
public:
explicit A(int x) {}};class B: public A{};int main(void){
B *b = new B(5);
delete b;}main.cpp: In function ‘int main()’: main.cpp:13: error: no matching function for call to ‘B::B(int)’ main.cpp:8: note: candidates are: B::B() main.cpp:8: note: B::B(const B&)
侃侃尔雅
拉丁的传说
叮当猫咪
随时随地看视频慕课网APP
相关分类