相关代码 |
|
#include class base { public: base(void) {cout ~base(void) {cout }; class derived1 : public base { public: derived1(void) {cout ~derived1(void) {cout }; class derived2 : public derived1 { public: derived2(void) {cout ~derived2(void) {cout }; void main(void) { derived2 object; }
相关资源 |
|