• When do I have to use a friend function rather than a member function?

    当我需要使用友元函数而不是成员函数?。

    youdao

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

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

    youdao

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

    要求:分别用成员函数和友元函数来求圆的面积和周长。

    youdao

  • 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

  • It then calls the friend function spacefriend and passes the class object address as its argument, and calls the template function, beginning with integer types and then floating data types.

    然后,调用友元函数spacefriend并将类对象的地址作为其参数传递。然后调用template函数,先使用整数类型,然后使用浮点数据类型。

    youdao

  • Our friend Schr? Dinger told us that if you solve for the wave function, this is what the probability densities look like.

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

    youdao

  • I considered "hiding" her-this is the function that allows you to make a friend invisible without going so far as to "defriend" her-but that seemed excessive.

    我考虑过对其隐身——这可是一种可以让你的好友看不到你而不会让她觉得你不把她当朋友的功能——但那似乎是多余的。

    youdao

  • So given that we couldn't afford to put up its friend, we had to say goodbye - at least for now - to function types as well.

    所以,鉴于我们没有能力收留它的朋友,我们也只好向函数类型说再见了——至少目前是这样。

    youdao

  • She cited several cinematic examples of black characters who function as the white leading lady's best friend or caretaker.

    她举了几个电影中成为白人女主角良师益友的黑人角色。

    youdao

  • But to be able to reach any private data within a user defined class you have to declare the global function as a friend within the definition of the class.

    为了访问一个用户定义的类里的私有数据,你必须声明全局函数为友元函数,并且在类中定义。

    youdao

  • Is it possible to make a template function friend to a template Specialization Class?

    有可能使一个模板函数的朋友一个专门化类模板吗?

    youdao

  • In view of a friend using a motherboard MSI 6163bx, I suddenly thought of the series motherboard is the gun to function with a fan.

    鉴于朋友使用的是微星6163BX主板,笔者突然想到该系列的主板是带有风扇测速功能的。

    youdao

  • A college library can play its function in three respects: to liven the atmosphere of learning, to better the materials collecting, to be a good teacher and a devoted friend as well.

    师专图书馆要从三个方面发挥其教育职能:学习氛围,优化资源,良师益友。

    youdao

  • A college library can play its function in three respects: to liven the atmosphere of learning, to better the materials collecting, to be a good teacher and a devoted friend as well.

    师专图书馆要从三个方面发挥其教育职能:学习氛围,优化资源,良师益友。

    youdao

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

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

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