摘要: 左移运算符重载为类的友元函数: #include<iostream>using namespace std;class Person{ friend ostream& operator<<(ostream& cout, Person& P);private: int a1; int a2;publi 阅读全文
posted @ 2024-01-30 21:09 平安喜乐× 阅读(37) 评论(0) 推荐(0)