会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
yiwenzhang
博客园
首页
新随笔
联系
订阅
管理
2021年8月14日
C++学习 --- 类和对象之友元
摘要: 四、友元 1、全局函数做友元 #include <iostream> #include <string> using namespace std; //建筑物 class Building { //告诉编译器,GoodGay 全局函数是Building的好朋友,可以访问Building中的私
阅读全文
posted @ 2021-08-14 13:18 yiwenzhang
阅读(47)
评论(0)
推荐(0)
编辑
公告