读书人

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

发布时间: 2012-12-14 10:33:07 作者: rapoo

如果在一个成员函数之前加一个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.

读书人网 >C++

热点推荐