If a member function changes an object, then this needs to be indicated.
如果成员函数更改对象,则这需要指出。
Special member function that is used to initialize newly created objects.
用来初始化新建对象的特殊成员函数。
path operator / (char* lhs, const path& rhs): This routine is a non-member function of path.
pathoperator / (char*lhs,const path&rhs):此例程是 path 的非成员函数。
If the previous function was a class member function, then you would have used an __arg2 variable.
如果前面的函数是类成员函数,那么应该使用__arg2变量。
However, there are cases when a non-member function is enough to serve the role of a mediator.
但是,也有情况下,当一个非成员函数足以成为一个中间人的角色。
Now Im going to call virtual function from constructor of Base class rather than member function.
现在,我米要调用基类的构造函数,而不是成员函数虚函数。
Call this member function to remove a tooltip from the screen if a tooltip is currently displayed.
如果当前显示了工具提示,则调用这个函数以从屏幕上清除工具提示。
This member function will return a hidden or disabled child window that contains the specified point.
此成员函数将返回包含了指定点的被隐藏或禁止的子窗口。
Call this member function to retrieve the help context identifier, if any, associated with the window.
调用这个函数以获得与窗口相关的帮助上下文标识符,如果有的话。
If neither of the two is defined, the compiler provides an implicit version that is a public member function.
如果二者都未定义,那么编译器会提供一种作为公共成员函数的隐式版本。
How can I use a private member variable in a non-member function, when the variable happens to be a pointer?
我如何能在非成员函数使用私有成员变量时,变量是指针?
A member function with public visibility can be invoked by any other member function in any other object or class.
在任何其它对象或类中的任何其它成员函数都可以调用具有公有可视性的成员函数。
By documenting what a member function does, you make it easier for others to determine if they can reuse your code.
通过对成员函数所做的事情编制文档,其他人就可以更容易地确定他们是否可以重用您的代码。
Finally, if you override or overload a member function and change its synchronization, you should also document why.
最后,如果覆盖或过载成员函数并更改其同步,则也应该写明原因。
Sets or resets the check state of a radio button or check box. This member function has no effect on a pushbutton.
本函数用于设置或者重置单选钮和复选框的状态。它对一般的按钮没有影响。
When we use a member function as the right-hand operand of the dot operator, we usually do so to call that function.
通常使用成员函数作为点操作符的右操作数来调用成员函数。
There's a virtual table for each class, which contains a list of Pointers to the implementation of each member function.
有一个为每个类的虚表,其中包含每个成员的功能的实现的指针列表。
Note that when you try to access an argument of a class member function the actual argument count starts from 2 instead of 1.
注意,在访问类成员函数的参数时,实际的参数编号从2而不是从1 开始。
Like any other member function, a constructor is declared inside the class and may be defined there or outside the class.
和其他成员函数一样,构造函数也必须在类中声明,但是可以在类中或类外定义。
Determines whether a given type is a member function pointer, possibly with additional properties as specified by a property tag.
判定一个给定的类型是否为成员函数指针,可以通过属性标签额外指定属性。
The static analysis of member call is defined as determining the type of member function pointer or reference in compiling stage.
在面向对象程序设计中,成员调用的静态分析是指在编译阶段确定调用成员函数指针或引用的类型。
We define member functions similarly to how we define ordinary functions. As with any function, a member function consists of four parts.
成员函数的定义与普通函数的定义类似。和任何函数一样,成员函数也包含下面四个部分。
As you can see, the rules and notations for field visibility are consistent with those for member function visibility, as discussed last week.
您可以看到,字段可见性的规则和标记都与成员函数可见性的规则和标记一致。后者在上周讨论过。
You should document any and all exceptions that a member function throws at you so that other programmers know what their code will need to catch.
您应该对成员函数向您掷出的所有异常编制文档,以便其它程序员知道他们的代码将需要捕捉什么。
To move, modify, or delete a graphics element, this ID is passed as a parameter to the respective member function on the containing Canvas object.
要移动、修改或者删除图形元素,该ID将作为参数传递给包含画布对象的各个成员函数。
You can use the MEMBER function to identify whether a single object appears within a series, with the function returning either "true" or "false."
可以使用MEMBER函数判断一个对象是否在一个序列中出现,这个函数返回“true ”或“false ”。
A member function with protected visibility can be invoked by any member function in the class in which it is defined or any subclasses of that class.
具有受保护可视性的成员函数可以由与该成员函数在同一个类中定义或其任何子类中定义的其它任何成员函数调用。
A member function with protected visibility can be invoked by any member function in the class in which it is defined or any subclasses of that class.
具有受保护可视性的成员函数可以由与该成员函数在同一个类中定义或其任何子类中定义的其它任何成员函数调用。
应用推荐