《Essential C++》系列笔记之第四章(基于对象的编程风格)之第十节(重载iostream运算符)
代码实践main.cpp#includeusingnamespacestd;#include"Person.h"intmain(){PersonP("HMJ",12,12345);cout>P;coutusingnamespacestd;#includeclassPerson{friendistream&operator>>(istream&,Person&);friendostream&oper