RT,想搞个类中类,不知道成员类中能不能访问母类的变量。 代码差不多这样:
class A{ public: class B{ public: int b1,b2; void b3(void){ printf("%d",a1); } }; int a1; };
验证码rrrwrrrwrrrw寄