摘要: #include <iostream> class Person { public: Person(int age): m_age(age) { } ~Person() { } void func() { std::cout << "Person func" << std::endl; } void 阅读全文
posted @ 2022-06-30 21:38 thomas_blog 阅读(15) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> class Person { public: Person() { std::cout << "Person" << std::endl; } ~Person() { std::cout << "~Person" << std::endl; } private 阅读全文
posted @ 2022-06-30 21:15 thomas_blog 阅读(15) 评论(0) 推荐(0) 编辑
摘要: class Person { private: int age; char sex; }; class Student: public Person { private: int cid; }; > cl /d1 reportSingleClassLayoutStudent D:\ConsoleAp 阅读全文
posted @ 2022-06-30 14:27 thomas_blog 阅读(6) 评论(0) 推荐(0) 编辑