相关代码 |
|
#include class One { public: One(void) { cout one = 1; }; int one; }; class Two { public: Two(void) { cout two = 2; }; int two; }; class Three { public: Three(void) { cout three = 3; }; int three; }; class Derived: private One, private Three, public Two { public: Derived(void) : One(), Two(), Three() { cout void show_value(void) { cout }; void main(void) { Derived my_class; my_class.show_value(); cout }
相关资源 |
|