摘要:
#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
阅读(23)
评论(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
阅读(21)
评论(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
阅读(19)
评论(0)
推荐(0)

浙公网安备 33010602011771号