摘要: 四、友元 1、全局函数做友元 #include <iostream> #include <string> using namespace std; ​ //建筑物 class Building { ​ //告诉编译器,GoodGay 全局函数是Building的好朋友,可以访问Building中的私 阅读全文
posted @ 2021-08-14 13:18 yiwenzhang 阅读(47) 评论(0) 推荐(0) 编辑