![]() |
#2
rjsp2012-07-18 14:12
|
#include <iostream>
using namespace std;
class A{
int a,b;
public:
A(int x,int y){
a=x;
b=y;
}
};
class B:public A{
};
class C:public B{
public:
C(int x,int y):A(x,y){
}
};
int main(){
C c(1,2);
return 0;
}
rror C2512: 'B' : no appropriate default constructor available