In the Add Member Variable dialog box, finish the variable name and choose “Control” for the category, then “CYellowEdit” for the variable type.
基于1个网页-相关网页
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.
正如我们在前面的章节所描述的,一个静态类型的语言在一个变量的生命周期内都会绑定一个类型。
So there's no mention of int, and yet we've been saying for the past couple of lectures, that anytime you declare a variable, you absolutely have to specify its type.
这里没有提及int,我们在前几个演讲中,一直讨论的东西,任何时候你声明一个变量,你必须指定它的类型。
应用推荐