Class instantiation USES function notation. Just pretend that the class object is a parameterless function that returns a new instance of the class. For example (assuming the above class).
类的实例化使用函数符号。只要将类对象看作是一个返回新的类实例的无参数函数即可。例如(假设沿用前面的类)。
For the function, we are once again using the shorthand closure notation.
对于这个函数,我们再次使用了一个简短的闭包注释。
Using standard GET notation, the parameters follow the function and are delimited by a question mark (?).
使用标准GET注释,参数紧随函数,并由问号(?)分隔。
Well, simply with the * notation at least on the way in when you declare the function called swap, you simply say this is not going to take an int and another int because that's useless.
好的,简单说,当你声明一个函数调用swap函数时,使用*符号,你可以简单说,这不能使用一个int数和另外一个int数,因为那是无效的。
应用推荐