摘要:
#include <iostream> class Person { public: Person(std::string name, int age): m_age(age), m_name(name) { } bool operator==(Person &person) { std::cout 阅读全文
摘要:
#include <iostream> class Person { public: Person() { m_age = NULL; } Person(int age) { std::cout << "Person " << this << std::endl; m_age = new(int); 阅读全文