All that matters is that each alias has the same type, which in this case is int. 重要的是,每个别名都具有相同的类型,在本例中是int。
For example, consider a person's age, one business object might express age as a string and another as an int. 例如,考虑某个人的年龄,一个业务对象可能会将年龄表示为一个字符串,而另一个业务对象则会表示为一个整数值。
The implicit conversion operator is defined, which converts a Point type to int. 隐式转换操作符将Point类型转换为int。
Similarly, create another UML attribute of Y and set its type to int. 类似地,创建另一个UML属性Y,将其类型设置为int。
A UML property b of type int and a UML operation xyz with return type int. 一个UML属性b(类型为int)和一个UML操作xyz(返回值类型为int)。
Similar considerations apply if we change the type of the first parameter from String to int. 如果将第一个参数的类型从String变成int,那么也得考虑相同的问题。
Right-click the class and add a template parameter with name T.Add operations such as isEmpty(): bool, getSize(): int. 在此类上右击并添加一个名为T的模板参数。添加诸如isEmpty():bool,getSize():int之类的操作。
In that situation, most programmers just read that as an int. 在这种情况下,大多数程序员都会将其作为int读入。
For instance, Java code's int maps to the XML type xsd: int, and this maps back to Java code's int. 例如,Java代码的int映射到XML类型xsd:int,并且它映射回Java代码的int。
Note also that the conversions apply equally for boxed and unboxed Java types, such as Integer and int. 另请注意,转换同样适用于受限和不受限Java类型,例如Integer和int。
For starters, you can switch on Strings. ( The Java language can only switch on an int.) 首先,可以在String上进行切换(而Java语言只能在int上进行切换)。
Nonetheless, this will result in a problem in the callTest() in the second class, because a float cannot be converted to int. 即便如此,在第二个类的callTest()方法中也会引起问题,因为float不能转换成int。
Now I'm going to have another pointer to an int. 现在我声明另一个int型指针。
Then I'm declaring a variable called n, it's of type int. 然后我声明了一个变量n,它是int型的。
This says that we created a new delegate type, named MyDelegate, which can constructed over methods with void return types and that accept two arguments each typed as int. 我们新建了一个委托类型,名为MyDelegate,它可以通过拥有两int型参数、返回类型为void的方法来构建。
So that's what it means to get an int. 所以获得一个int数是什么目的?
Now at this point in the story, I've got a variable called n.I've stored it in int. 现在这个故事的这里,我获得了一个变量n,我把它存储成int型的。
For example, suppose you have a method f () that takes no arguments and returns a value of type int. 举个例子来说,假设我们有一个方法名叫f(),它没有自变量,返回的是类型为int的一个值。
It requires this additional int. 它需要一个附加的int数。
Say something like, give me an int. 说点东西,比如:给我一个int数。
The compiler can translate occurrences of this type into type int. 编译器能够把该静态类转换为int类型。
Array is a type, so array applied to the list is just like applying float to an int. array是一种类型,所以array应用在链表上,就相当于把浮点型应用在整形上。
Okay, obviously that's not an int. 好的,显然那不是一个int数。
Give me an int. 给我一个int数。
It doesn't return an int. 它不返回一个int数。
With int values, however, you do not need to cast, because everything is already an int. 但对于int值,却不必进行造型处理,因为所有数据都已经属于int类型。
So go ahead and prompt Jordan for an int. 往前走并提示Jordan给你一个int数。
Pittsburgh Sleep Quality Index ( PSQI) and SCL-90 were used to evaluate the effects before and after the int. 干预前后采用匹兹堡睡眠质量指数(PSQI)和症状自评量表(SCL-90)对更年期妇女进行评价。
So I'm printing out line by line a char will take out some number of bytes; a double, some number of bytes; a float; and an int. 所以我将要逐行地打印出一个char类型占了几个字节,一个double类型要占了几个字节,还有float和int类型。
The problem only arises if you have an int divided by an int. 这个问题只会发生在,当你用一个整型数除以一个整型数的时候。