Then, Listing 6 USES the new enumeration as the type for the member variable.
然后,清单6使用新定义的枚举作为一个成员变量的类型。
A new variable with the appropriate type is created for you.
这样一个具有适当类型的新变量就创建好了。
As we described in the previous section, a statically typed language binds the type to a variable for the lifetime of that variable.
正如我们在前面的章节所描述的,一个静态类型的语言在一个变量的生命周期内都会绑定一个类型。
Arrays are typed, and so you know exactly what variable type is going to be needed for each item in the array.
数组被类型化,所以您需要很清楚地知道数组中每个项目的变量类型是什么。
A new local variable of the same type as the method's return value is created for you.
系统将为您创建与该方法的返回值类型相同的新局部变量。
As you might expect, this must be the same type that you declared for the member variable.
正如您所料,默认值的类型必须与成员变量声明的类型完全相同。
For a global declaration, you need to specify its type (that is, class name) and the identifier you want to use to refer to it (that is, variable name).
对于global声明,需要指定它的类型(即类名)和想要用于引用它的标识符(即变量名)。
I add an argument for the event as a public variable of type TimeEntry.
我为这个事件添加了一个类型为公共变量的参数TimeEntry。
For example even though at design time a variable of data type double can be mapped to a table column of type XML, the run time consequences are unpredictable and hence resulting in errors.
例如,虽然在运行时可以将double类型的变量映射到xml类型的表列,但是这可能导致不可预测的运行时结果,并因此而产生错误。
The ActivityStreamsEntry class also includes simple helper methods for adding an author, objects, and verbs to the entry, ensuring the proper variable type of these values.
activitystreamsentry类也包括了用于给项添加作者、对象和动词的简单帮助器方法,可以保证这些值的变量类型是正确的。
As an example, Listing 6 shows what happens when I change the type of the local variable used for the method start time in the interceptor code from long to int.
作为一个例子,清单6展示了在将方法开始时的拦截器代码所使用的局部变量的类型从long变为int时的情况。
Use the elemtext String variable, which was set for event type START_TAG, to get the element tag name.
可以使用elemtextString变量来获得元素标签名称,该变量是为事件类型START _ TAG设置的。
The default type for the new variable is "String".
新变量的默认类型是“String”。
For these and many other reasons, monthly power fees often vary by the type of power connection rather than by the variable kWh.
因为这个原因以及其他的一些原因,月电费经常会随电力连接的类型而变,而不是随耗电量(kWh)变化。
Furthermore, deleted rows are skipped unconditionally on table scan access while deleted keys are not skipped for type-2 index scans unless the registry variable DB2_SKIPDELETED is also set.
而且,虽然在type - 2索引扫描中,被删除的行不会被跳过,但是除非同时设置了注册表变量db2_skipdeleted,否则在表扫描访问中,被删除的行将被无条件跳过。
For Linux and Solaris platforms, Xserver is replaced by setting a GDFONTPATH environment variable pointing to the font directories containing True Type fonts, that is, TTF and TTC.
对于Linux和Solaris平台,可以通过设置GDFONTPATH环境变量来替换Xserver,该环境变量指向包含TrueType字体(即ttf和TTC)的字体目录。
For example, if you type set (or vared, the fish variable editor), a space, and then press Tab, fish presents a list of available variables.
例如,如果输入set(或vared,即fish变量编辑器)和一个空格,然后按tab, fish会显示可用变量的列表。
C + + has never had an easy mechanism for querying the type of a variable or an expression.
C+ +没有提供查询变量或表达式的类型的简便方法。
To this snippet we want to add support for the 4th type of logon data, the trusted environment variable, in this example REMOTE_USER.
我们希望在这段代码中添加对第四类登录数据(可信的环境变量,在此示例中是REMOTE_USER)的支持。
These are marked as abstract, which results in Tapestry implementing them as simple "getter" and "setter" methods and creating a new variable for this class, of the type Order.
这两个方法被标记为抽象的,这样Tapestry会把它们实现为简单的“getter”和“setter”方法,并为这个类创建类型为Order的新变量。
When the compiler encounters a variable with a wildcard in its type, such as the box parameter of rebox , it knows that there must have been some t for which box is a box.
当编译器遇到一个在其类型中带有通配符的变量,比如rebox的box参数,它认识到必然有一些T,对这些t而言box是box。
Now you must configure a variable for the Type of room required field.
现在,您必须为Type ofroomrequired字段配置一个变量。
The only thing worth nothing is that when you declare a new variable (or column) you will need to specify the Type for the variable.
唯一不值得的事情是,当您声明一个新的变量(或者列)时,需要为变量指定Type。
If a variable is being initialized, the compiler can typically infer its type, so it is not necessary for the programmer to type it out.
如果一个变量初始化了,编译器通常能推断它的类型,所以程序员不必显式的敲出来。
If you type a command name, then bash looks for that command on your path, which is a colon-separated list of directories in the path environment variable.
如果输入一个命令名,那么bash将在您的路径(path)中查找该命令,路径就是指path环境变量中以冒号分隔的目录列表。
Type a new name for the variable, and then press Enter.
键入变量的新名称,然后按enter键。
The result of an assignment, calculation, or data type conversion is too large to be represented within the range of values allowed for that type of variable.
赋值、计算或数据类型转换的结果太大,以至于不能在那种类型变量允许的取值范围内表示。
As we described in the previous section, astatically typed language binds the type to a variable for the lifetime of that variable.
正如我们在前面的章节所描述的,一个静态类型的语言在一个变量的生命周期内都会绑定一个类型。
You can define the type of component inside template, or you can create an instance variable for the component and use the component annotation to define the component type and parameters.
你可以在模板中定义组件类型,或者你可以使用组件标注去定义组件类型和参数为组件产生一个实例变量。
You can define the type of component inside template, or you can create an instance variable for the component and use the component annotation to define the component type and parameters.
你可以在模板中定义组件类型,或者你可以使用组件标注去定义组件类型和参数为组件产生一个实例变量。
应用推荐