你可以可以为变量指明数据类型,输入参数,来自函数的返回值,用户自定义函数以及模板。
You are also able to specify data types for variables, input parameters, return values from functions, user-defined functions and templates.
例如,必须用参数形式包括进类型信息,必须用函数形式返回值和所有变量的类型。
For example, you must include type information with arguments, return values with functions, and types for all variables.
不要使用变量或货币数据类型作为参数或返回值。
Do not use variants or the currency data type as parameters or return values.
你通常会把函数返回值赋给拥有更特定类型变量的时候遇到这样的错误。
You usually see this error when you assign a value returned from a function to a variable with a more specific type.
系统将为您创建与该方法的返回值类型相同的新局部变量。
A new local variable of the same type as the method's return value is created for you.
通过静态类型,编译器可以检查参数和变量的值或针对一个给定操作所允许的返回值。
With static typing, the compiler can check the values of arguments, variables, or return values against values allowed for a given operation.
在这里实例中,我们也需要声明和初始化一个变量,用来处理Web服务返回的Address复杂类型,如清单13。
In this example, we also need to declare and initialize a variable to handle the Address complex type returned by the Web Service, shown in Listing 13.
在清单5中,测试不需要与字符串进行比较,因为变量返回一个Boolean类型而不是rtf作为select属性的结果。
In Listing 5, the test does not need to compare to a string because the variable returns a Boolean type rather than an RTF as a result of the select attribute.
指向该类型变量的指针被传递到process_args函数,返回该指针时,它包含从参数处理过程获得的值。
A pointer to a variable of this type is passed to the process_args function, and on return, the variable contains values obtained from arg processing.
在BGGA方案中,可以声明function类型的变量、方法参数和方法返回值。
In the BGGA proposal, you can declare variables, method arguments, and method return values that are function types.
然后我们调用AddressBookWeb服务,并且使用Address变量来保存匹配返回的复杂类型数据,如清单14。
We then invoke the Address Book web service and populate the Address variable with the complex type data returned upon a match, shown in Listing 14.
当返回值的类型很复杂时,这个重构将很有用,因为变量的类型是自动生成的。
This is useful when the return value has a complex type because the type of the variable is automatically generated.
后两个变量返回类直接声明的字段的信息——与字段的接入类型无关。
The last two return information for fields declared directly by the class — regardless of the fields' access types.
后两个变量返回类声明的方法的信息,与方法的接入类型无关。
The last two return information for methods declared directly by the class, without regard to the access type of the method.
这些语句也规定程序员可以选择的变量与参数种类,以及当一个表达式使用过程或函数时代码将返回的值的类型。
These statements also define the kinds of variables and parameters the programmer can choose and the type of value that the code will return when an expression accesses the procedure or function.
这意味着你可以直接在返回的对象上访问成员,或者可以使用强类型的局部变量为其赋值,而无需进行转换。
This means that you can easily access members directly off a returned object, or you can assign it to a strongly typed local variable without having to cast.
因为我们希望List成为其所包含的元素类型的泛型,所以希望静态factory方法带有类型变量t这一参数并返回List的实例。
Because we'd like our Lists to be generic in the type of element they contain, we'd like our static factory method to take an argument of type variable t and return an instance of List.
返回一个字符串值,它包含变量的系统数据类型名称。
Returns a string value containing the Visual Basic data type name of a variable.
应用结构体类型或变量的时候,返回事实的大小,包括为对齐而填充字节。
When applied to a structure type or variable, sizeof returns the actual size, whichmay include padding bytes inserted for alignment.
设置正在添加的成员变量的返回类型。
魔兽世界API使用了一些整合参数和返回值变量类型。
The World of Warcraft API uses rather complex values for some arguments and return values.
魔兽世界API使用了一些整合参数和返回值变量类型。
The World of Warcraft API uses rather complex values for some arguments and return values.
应用推荐