#ifndef __seven____5__
#define __seven____5__
#include <stdio.h>
#include <iostream>
using namespace std;
class B1{
public:
B1(int a){
cout << a << " b1"<< endl;
}
};
class B2{
public:
B2(int b){
cout << b << " b2"<< endl;
}
};
class B3{
public:
B3(){
cout << " b3"<< endl;
}
};
class C: public B2, public B1, public B3{
public:
C(int a, int b, int c):B1(a), B2(b), mb2(a), mb1(b)
{
cout << c << " c3"<< endl;
}
private:
B1 mb1;
B2 mb2:
B3 mb3;
};
#endif
不知道為何會有這個錯誤啊,哪位大哥幫忙解答一下
B2 mb2:
這裡的分號寫成冒號了。