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

 更多收起网络短语

双语例句

  • Serializable Person类定义了一个它自己的友元,如清单1所示。

    Consider a Serializable Person class that defines a friend of its own, as shown in Listing 1.

    youdao

  • 名为spacefriend的友元函数,它是space类的友元,它的参数是类对象,输出类对象的x变量的值。

    A friend function named spacefriend, which is a friend of class space, and which takes the class object as an argument and prints the value of its variable x.

    youdao

  • 托管类型不允许有友元。

    Managed types do not allow friends.

    youdao

更多双语例句

百科

友元

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

详细内容

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

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

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