哪些成员函数必须作为参数传递。
如何在适当时调用成员函数的示例?
Examples of how to invoke the member function when appropriate.
成员函数所做的事情以及这样做的理由
如果成员函数更改对象,则这需要指出。
If a member function changes an object, then this needs to be indicated.
对于类成员函数,从__arg2开始。
成员函数带来的任何异常。
Any exceptions that a member function brings to your attention.
第一,这是一个全局函数而不是成员函数。
成员函数如何更改对象?
path成员函数概述。
您还需要表示将如何使用成员函数的任何参数。
You also need to indicate how any parameters to a member function will be used.
这个成员函数确保每个消息都被处理。
This member function ensures that every message is processed.
该信息能让其它程序员知道传给成员函数的是什么。
This information lets other programmers know what to pass to a member function.
为什么我们通过对象而不是对象的成员函数?
Why do we pass objects rather than object members to functions?
一般情况下,没有必要重载成员函数GetSite 。
Usually there's no need to override the GetSite member function.
例如,银行帐户的withdraw成员函数修改帐户余额。
For example, the withdraw member function of a bank account modifies the account balance.
在理想情况下,头文件应该包含所有类定义、成员函数和变量。
This header file should ideally contain all the class definitions, member functions, and variables.
具有同一名字的成员函数和非成员函数不会相互重载。
Member and nonmember functions with the same name do not overload one another.
如清单1中所示,Example对象的成员函数被定义为闭包。
As we see in Listing 1, the member functions of the Example object are defined as closures.
最后,如果覆盖或过载成员函数并更改其同步,则也应该写明原因。
Finally, if you override or overload a member function and change its synchronization, you should also document why.
如果前面的函数是类成员函数,那么应该使用__arg2变量。
If the previous function was a class member function, then you would have used an __arg2 variable.
这个函数是sessionmanager类的成员函数。
相对于静态外部函数来说,用成员函数作为事件处理器是最丑陋的做法。
And it's especially ugly if you want to use member functions as the event handlers, as opposed to static extern functions.
如果二者都未定义,那么编译器会提供一种作为公共成员函数的隐式版本。
If neither of the two is defined, the compiler provides an implicit version that is a public member function.
Blitz的Unifor m类提供返回在0,1间的双精度数的成员函数。
Blitz's Uniform class provides a member function that returns a double in 0, 1.
在任何其它对象或类中的任何其它成员函数都可以调用具有公有可视性的成员函数。
A member function with public visibility can be invoked by any other member function in any other object or class.
注意,在访问类成员函数的参数时,实际的参数编号从2而不是从1 开始。
Note that when you try to access an argument of a class member function the actual argument count starts from 2 instead of 1.
要移动、修改或者删除图形元素,该ID将作为参数传递给包含画布对象的各个成员函数。
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.
根据预设,C++编译器使用__thiscall作为类成员函数的调用协定。
By default, the C++ compiler uses the __thiscall calling convention for class methods.
通过对成员函数所做的事情编制文档,其他人就可以更容易地确定他们是否可以重用您的代码。
By documenting what a member function does, you make it easier for others to determine if they can reuse your code.
通过对成员函数所做的事情编制文档,其他人就可以更容易地确定他们是否可以重用您的代码。
By documenting what a member function does, you make it easier for others to determine if they can reuse your code.
应用推荐