go top

friend function

  • 友元函数

网络释义专业释义英英释义

  友元函数

友元函数 ( friend function )是指能访问类的所有成员的函数。一个函数若在几个类中声

基于2464个网页-相关网页

  朋友函数

...的成员函数存取,如果想要让类别以外的函数也能存取该类别私有资料时,就可以将函数宣告为此类别的「朋友函数(friend function)。

基于20个网页-相关网页

短语

Virtual Friend Function Idiom 虚友元函数用法

friend member function 友元成员函数

  • 友元函数

·2,447,543篇论文数据,部分数据来源于NoteExpress

Friend function

  • abstract: In object-oriented programming, a friend function that is a "friend" of a given class is allowed access to private and protected data in that class that it would not normally be able to as if the data was public.

以上来源于: WordNet

双语例句原声例句权威例句

  • 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.

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

    youdao

  • To generate a C++ friend function that is a friend of a class, you need to create a UML operation within a UML Class and apply the cpp_operation stereotype on the UML operation.

    为了在一个类中创建一个 C++ 友函数,您需要在一个 UML 类的内部创建一个 UML 操作,并且将 cpp_operation 套用在该 UML 操作上面。

    youdao

  • A friend function is used for accessing the non-public members of a class.

    友元函数用来访问类的非公有成员。友元函数不是类的成员函数。

    youdao

更多双语例句
  • Our friend Schr?dinger told us that if you solve for the wave function, this is what the probability densities look like.

    我们的朋友薛定谔告诉我们,如果你用波函数来解决,你就会知道这些概率密度看上去的样子。

    麻省理工公开课 - 固态化学导论课程节选

更多权威例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

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

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