As you build these kinds of simulations, or anything like this, you need to think through whether things should be multiplicative or additive.
正如你建立各种仿真程序,或者类似的仿真程序时,你应该去想一想,他们应该是用加法还是用乘法。
So there's a return branch on every possible path through the code. And that's valuable, it's something you want to think about as your right your own.
所以代码中每条可能的路径,都会有一个返回值分支,这是非常有价值的,当你自己写程序的时候也应该考虑这件事。
应用推荐