go top

友元 [yǒu yuán]

网络释义

短语

友元函数 Friend function ; friend ; Friend Functions

友元类 friend class ; Friend Classes

友元程序集 friend assembly ; Friend Assemblies

虚友元函数用法 Virtual Friend Function Idiom

友元数据模型 Affiliate Data Model

友元成员函数 friend member function

让模板成为友元 Befriending Templates

通过友元程序集 friend assembly

友元运算符重载 operator

友元函数类外定义 String operator

 更多收起网络短语

双语例句

  • 为什么这不可以友元函数访问私有变量

    Why can't this friend function access the private variables?

    youdao

  • 托管类型允许有友元

    Managed types do not allow friends.

    youdao

  • 修复错误,请不要托管类型声明

    To fix this error, do not declare friends inside managed types.

    youdao

更多双语例句

百科

友元

友元是一种定义在类外部的普通函数或类,但它需要在类体内进行说明,为了与该类的成员函数加以区别,在说明时前面加以关键字friend。友元不是成员函数,但是它可以访问类中的私有成员。

详细内容

以上来源于: 百度百科
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定