Well, if you want to call a function, it's like putting another tray on that stack of trays and that tray represents a chunk of memory that, that function can use.
嗯,如果你想调用一个函数,这就像把一个托盘放到另一个托盘上,托盘代表一块,函数可以使用的内存。
So, we can use Coulomb's force law to think and it does that, it tells us the force is a function of that distance. But what it does not tell us, which if we're trying to describe an atom we really want to know, is what happens to the distance as time passes?
来考虑这两个粒子之间的,它告诉我们力随距离的函数关系,但它不能告诉我们,而我们如果要描述,原子又非常想知道的是,距离随时间的变化时怎样的?
And just as with variables, you should use some common sense, some style here, and the function's name should X Y communicate what it does, calling it X or Y or Z is generally not all that helpful.
就像变量,你使用一些常识,一些类型,和函数名需要,传达它所做的事情,把它叫做,或者Z通常是没有什么用处的。
应用推荐