首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

如果在一个成员函数头里加一个friend

2012-12-14 
如果在一个成员函数之前加一个friend!so this fuction will be a friend fuction.It is not belong to the

如果在一个成员函数之前加一个friend!
so this fuction will be a friend fuction.
It is not belong to the class?
[最优解释]
英语回答应该是。
No,it‘s not。(标点除外)。
[其他解释]
yes 
[其他解释]
如果函数属于这个类,又何必声明为友元函数呢
[其他解释]
yes, you are right.

热点排行