阅读背景:

重载Swift循环函数会导致“无法找到接受所提供参数的'init'的重载”错误

来源:互联网 

I am new to Swift, and have just been playing around with some tutorials. I decided to try modifying the results of one of them by using the round function, but found that you couldn't specify 2 decimal places, so I needed to use the formula round(100 * x) / 100. I decided to try to overload the round function with the following code: I am new to Swift, and have just been playing a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: