Friend function 双语例句
全部
1·Why can't this friend function access the private variables?
为什么这不可以友元函数访问私有变量?
2·When do I have to use a friend function rather than a member function?
当我需要使用友元函数而不是成员函数?。
3·A friend function is used for accessing the non-public members of a class.
友元函数用来访问类的非公有成员。友元函数不是类的成员函数。
4·Requirements: member function respectively, and a friend function to find area and circumference of a circle.
要求:分别用成员函数和友元函数来求圆的面积和周长。
5·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变量的值。
6·To create a friend function such as friend int Class2: : friendop (int x), where Class2 is the class in which the function friendop is defined, perform these steps.
要创建一个友函数:friend int Class2: friendop (int x),同时该函数的友好性被定义在class2中,请您执行下述步骤。
7·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 操作上面。
8·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函数,先使用整数类型,然后使用浮点数据类型。
9·Our friend Schr? Dinger told us that if you solve for the wave function, this is what the probability densities look like.
我们的朋友薛定谔告诉我们,如果你用波函数来解决,你就会知道这些概率密度看上去的样子。
10·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.
我考虑过对其隐身——这可是一种可以让你的好友看不到你而不会让她觉得你不把她当朋友的功能——但那似乎是多余的。
