go top

友元 [yǒu yuán]

网络释义

短语

友元函数 Friend function ; friend ; Friend Functions

友元类 friend class ; Friend Classes

友元程序集 friend assembly ; Friend Assemblies

友元数据模型 Affiliate Data Model

友元成员函数 friend member function

让模板成为友元 Befriending Templates

彭友元 You-Yuan Peng

张友元 You-Yuan Zhang

 更多收起网络短语

双语例句

  • 托管类型允许有友元

    Managed types do not allow friends.

    youdao

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

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

    youdao

  • 要求:分别用成员函数函数面积周长

    Requirements: member function respectively, and a friend function to find area and circumference of a circle.

    youdao

更多双语例句

百科

友元

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

详细内容

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

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

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