摘要:
#1.问题 C4996 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details 阅读全文
摘要:
在这里初始化列表直接用age(age)即可,用this->age(age)反而会出错,C++不允许在成员初始化列表中使用this关键字来初始化类成员 ~~~C++ class Person { public: Person(int age) : age(age) {} // Initialize t 阅读全文