下面我们先来介绍一下什么是函数表达式,和现代的调试器如何处理他们呢。
I'll start with a general explanation of what function expressions are how modern debuggers handle them. Feel free to skip to a final solution, which explains how to use these constructs safely.
什么是一个函数的原型呢?
什么热力学量,是V,N和T的自然函数?
What thermodynamic function is naturally a function of N, V, T?
我要说的是取其一,积分得到包括另一变量的函数的结果,然后对结果求导,进行比较看得到什么。
But what I am saying is just take one of them, integrate, get an answer that involves function of the other variable, then differentiate that answer and compare and see what you get.
这样,函数就可以知道自己的参数在什么地方,参数是从内存底部向顶部来存储的。
So that a function can know where its parameters are, parameters are stored from the bottom of memory to the top.
得到的结论是,使用动词优于使用 名词,因为函数始终都会做点什么。
The catch is to use verbs rather than nouns because functions always do something.
这个函数是干什么的-,这个函数的最终角色是什么呢?
So what's for all this function — what's the role of this function in life?
这正是对我是用这个函数最有价值的地方,有什么问题吗。
Which is actually of real value to me here as I use that. OK. Yeah. Question.
我的函数原型,再次强调,我可以以后使用它,这样编译器就不会疑惑这个你提及的,是什么,因为是没有,被声明的。
My prototype, again, so that I can use it later increment without the compiler wondering what is this increment that you're referring to because it's not otherwise been declared.
把闭包应用于函数模式是令人兴奋的,一旦这么做了之后,再把它们应用于面向对象设计模式,就不是什么大事情了。
Applying closures to functional patterns is exciting, and once you've done that, it's not too big a stretch to apply them to object-oriented design patterns.
在我们希望允许类继承类型参数时立即出现的紧迫问题是要决定我们能调用什么样的超级构造函数?
An immediate and pressing problem that arises as soon as we want to allow for classes that extend a type parameter is to decide what super-constructors are we able to call?
这个小循环是做什么的,这个小的循环是,我要写一个函数或者过程来接受两条消息。
And what's this little loop say to do? This little loop says I'm going to write a function or procedures that takes in two messages.
是温度的函数,它只是温度的函数,不管是什么气体。
The only function it is -- it doesn't care where the gas is. It only cares where the temperature is.
题目给出了积分的条件,就必须要弄清楚,什么是积分的函数,什么是积分区域。
When you are given a piece of data in the statement of a problem, you have to figure out whether that is part of a function to be integrated or whether that is part of the region of integration.
本教程讨论了什么是XQuery函数,它们的优点是什么,以及如何实现它们。
This tutorial covers exactly what XQuery functions are, their advantages, and how to implement them.
无论函数是什么,如果你的函数除了原点处处为,在原点是其他的值,那积分还是0的。
no matter what value you put for a function, 0 if you have a function that's zero everywhere except at the origin, and some other value at the origin, the integral is still zero.
什么是目标函数为一个非营利组织?
What is the objective function for a non-profit organization?
但由于我们只知道T是其已声明界限的子类型,所以我们不知道T的某一实例化将有什么构造函数。
But because all we know about t is that it's a subtype of its declared bound, we have no idea what constructors an instantiation of t will have. This problem could be handled in one of three ways.
了解为什么需要堆栈的最好方法是查看递归函数的情况。
The best way to see why stacks are needed is to look at recursive functions. For simplicity, let's look at the recursive implementation of the factorial function.
这就是为什么您不应该在每次调用发生改变的时候都连接到查询标识符文本,而应该把它们作为参数一样传送的原因,就好像它们是一个函数一样。
This is why you shouldn't concatenate to the text of a query identifiers that change with every call, but you should pass them as parameters, as if the query were a function.
什么是默认构造函数?
它的实际意义是什么呢?可能理解它的最佳途径是接触一个实际的例子,我们需要一个递归函数。
But what does it actually mean Probably the best way to understand is with a real example and to do that, we need a recursive function.
首先,你应该知道什么是虚函数,以及如何使用它。
Firstly, you should know what a virtual function is, and how to use it.
可以看到,调用挂钩实际上是改变函数指针,这样看来,你完成它应该没什么困难。
As you can see, call hooking is really all about redirecting function Pointers, and at this point, you should have no trouble doing that.
什么是候选函数?什么是可行函数?
什么是模板函数挥发性类型推断错了吗?
What is wrong with a volatile type deduction in template functions?
这种方法使什么是干净的应用在一行代码函数我。
What this method enables is for me to cleanly apply a function in one line of code.
为什么是“做”,允许在一个函数?
为什么是“做”,允许在一个函数?
应用推荐