摘要:
#include<iostream>#include<ostream>#include<string>using namespace std;class A{ friend ostream& operator<<(ostream& out, const A & a) { out<<a.str; return out; }public: string str; A(string s):str(s){} A& operator=(const A&); A& operator+=(const 阅读全文