摘要:
#include <iostream> class Person { public: Person(int age): m_age(age) { } ~Person() { } void func() { std::cout << "Person func" << std::endl; } void 阅读全文
摘要:
#include <iostream> class Person { public: Person() { std::cout << "Person" << std::endl; } ~Person() { std::cout << "~Person" << std::endl; } private 阅读全文
摘要:
class Person { private: int age; char sex; }; class Student: public Person { private: int cid; }; > cl /d1 reportSingleClassLayoutStudent D:\ConsoleAp 阅读全文