send_message; this means that the parameters are an int, a char* (s for string), and an int; and that if an exception is thrown, the function is called TrayIcon.send_message.
这意味着参数依次是 int 、 char* (s 表示字符串)和 int ; 而且如果抛出一个异常,则该函数称作 TrayIcon.send_message 。
One of them takes no arguments, another one takes an Int ID value, and another one takes both an Int and String.
其中一个没有参数,另外一个接受整型id值,还有一个同时接收整型和字符串参数。
In this case, you can use a Convert to ensure that the string age, which is expected, but not required to be an int, is actually an int in the target.
对于这种情况,您可以使用Convert来确保字符串格式的年龄(预期的值,但不一定要为整数值)在目标中为一个整数值。
Well basically what we're doing is we're giving ourselves the ability to create data types the same way that we have some built-ins, so we have things like int, float, string, these are built-in data types.
就是要赋值我们自己创建,和内置的数据类型,相同的数据类型的能力,我们有一些内置的数据类型,如int,float,string等,如果你考虑下这些数据类型。
And we'll see if you try to mess with our functions by providing a string when we want an int, or providing an int when we want a string, you may very well get yelled at and the user will have to retry.
我们可以看到,如果你尝试打乱我们的函数,当想要一个int数时我们提供sting型,或者,当想要一个sting数时我们提供int型,你可能会被吼叫,然后用户不得不重新尝试。
Sometimes the functions -- sometimes a function can be used on multiple data types, plus, for example, we saw could add strings, or could add ints, but each one of those data types has associated with it a set of functions that are geared to handling them.
比如说,我们可以对string类型,进行add操作,也可以对int类型进行这个操作,但是这些数据类型中的每一种,都与适合于操作它们的,方法集相关联,我们想对我们创建的数据,类型做同样的事情。
应用推荐