摘要:
#include <iostream> class Person { public: Person(std::string name, int age): m_age(age), m_name(name) { } bool operator==(Person &person) { std::cout 阅读全文
posted @ 2022-06-27 18:22
thomas_blog
阅读(22)
评论(0)
推荐(0)
摘要:
#include <iostream> class Person { public: Person() { m_age = NULL; } Person(int age) { std::cout << "Person " << this << std::endl; m_age = new(int); 阅读全文
posted @ 2022-06-27 13:29
thomas_blog
阅读(25)
评论(0)
推荐(0)