Then, Listing 6 USES the new enumeration as the type for the member variable.
然后,清单6使用新定义的枚举作为一个成员变量的类型。
The first is a default constructor that sets a timestamp member variable.
第一部分是一个默认的构造函数,用来设置timestamp变量的值。
You don't define a member variable and then provide accessor and mutator methods.
定义数据成员后不需要分别定义访问和修改的方法。
As you might expect, this must be the same type that you declared for the member variable.
正如您所料,默认值的类型必须与成员变量声明的类型完全相同。
You should strive to initialize every member variable exactly once during construction.
你应该努力在构造函数期间,将每个成员变量准确的初始化一次。
First, we promoted the session variable to be a member variable, rather than a local variable.
首先我们设定Session变量为成员变量,而不是本地变量。
You can add a member variable from the Dialog editor in Resource View, or from Class View.
您可以从资源检视内的对话方块编辑器,或者从类别检视加入成员变数。
Instead of getting the value for a member variable, it's called when a member value should be set.
该函数并不为一个成员变量获取值,当要设置一个成员变量时,才调用这个函数。
It then appends all of that data as a hash table to the episodes array, which is a member variable.
然后将所有数据作为一个哈希表附加到剧集数组,该数组是一个成员变量。
Also, notice that, in the thread, you do not modify the stocks member variable, as you did previously.
也要注意,在线程中您不能修改stocks成员变量,正如您之前所做的。
Observe that the implementation emits trace events using the m_logger member variable from the base class.
观察该实现使用基础类中m_logger成员变量发出的跟踪事件。
How can I use a private member variable in a non-member function, when the variable happens to be a pointer?
我如何能在非成员函数使用私有成员变量时,变量是指针?
You can use the add member variable Wizard to add a member variable to a dialog box control created using MFC.
可以使用添加成员变量向导将成员变量添加到用MF C创建的对话框控件。
Note that setting a SyncVar member variable inside a property setter function does not cause it to be dirtied.
注意在属性设置函数中设置一个同步变量的值不会使他的脏数据标志被设置。
Notice that because both of the extracted methods use the number member variable, it is dragged into the superclass.
注意,因为两个提取方法都使用number成员变量,所以要涉及到超类。
The system plays a monitoring role for the member variable and function of the class in the applying procedure.
该系统提供对应用程序类中成员变量和成员函数的监控功能。
As you can tell from Listing 12, you can use the shorthand form here, because Retention has a single-member variable.
如清单12所示,这里可以使用简写形式,因为Retention只有一个成员变量。
The system played a monitoring role for the member variable and function of the class in the applying procedure.
该系统提供对应用程序类中成员变量和成员函数的监控功能。
In this new thread, you then access stocks, a member variable of the enclosing Activity (the class that creates the UI).
在这个新线程中,您可以访问stocks,一个封装activity(此类创建了UI)的成员变量。
By simply having a member variable following the xyzService convention, Grails knows to inject the xyzService singleton.
只要拥有遵循xyzservice约定的成员变量,Grails就知道需要注入xyzService单体。
By creating a new enumeration (grade) of the previously defined type, you can then use it like any other member variable.
用以前定义过的类型建立一个新的枚举(grade)之后,您就可以像使用其他成员变量一样使用它了。
When it has the tags as an array, the class loads the _commands member variable with the titles and AppleScript commands.
在获得标记数组时,这个类将标题和AppleScript命令装载到_ commands成员变量中。
Change it to a constructor argument at the same time, and make the caller have a member variable for that same dependency.
同时给构造函数加上相应的参数,给构造函数的调用者加上一个成员变量来体现依赖关系。
In the dialog box displayed in the dialog editor, right-click the control to which you want to add the member variable.
在对话方块编辑器内显示的对话方块中,以滑鼠右键按一下您要加入成员变数的控制项。
Take note, though — the shorthand version is available only if the annotation type has a single-member variable named value.
不过要注意,只有当注释类型只有一个成员变量,而且变量名为value时,才能使用简写形式。
Indicates that the member variable manages a control within a dialog box with data exchange and data validation support.
指示成员变量在具有数据交换和数据验证支持的对话框内管理控件。
Note that this annotation type doesn't have a single-member variable, so you gain nothing by naming one of the variables value.
因为该注释类型的成员变量不是一个,所以将一个变量命名为value没有任何意义。
A lot of processing is involved to take the data in an XML document and convert it into member variable data in multiple objects.
获取XML文档中的数据并将其转换为多个对象中的成员变量数据涉及大量的处理工作。
Internally, Barrier contains a member variable that is initialized to the total number of processes specified when the Barrier object is created.
从内部来看,Barrier包含一个成员变量,在创建Barrier对象时,这个成员变量被初始化为指定的进程总数。
Often I desire a copy constructor which initializes each member variable as a copy, rather than default constructing and then assigning. e. g.
经常我渴望一个拷贝构造函数初始化成员变量作为一个副本,而不是默认的构造,然后分配。
应用推荐