//例18.24 友元的方式重载输出运算符 #include using namespace std; class A { public: A(int x,int y){rx=x;ry=y;} friend ostream& operator<<(ostream &s,const A c) { s<