Declare the variable as static inside the function and the valued will be remembered.
声明变量为静态函数内的和值将被记住。
Figure 24 shows how to add a breakpoint to line 47 of your servlet, where you declare the variable numB.
图24显示出如何在servlet的第47行(声明了变量numB)加入断点。
Declare the variable as static inside the function and the valued will be remembered. You don't need to initialize it. But you can if you want to.
声明变量为静态函数内的和值将被记住。你不需要对它进行初始化。但如果你愿意你可以。
What's going on underneath the hood is we'll see pictorially X today is that when I declare this X, this variable X here.
底下所做的,我们将看到,当我声明这个X,这个变量。
When you declare a pointer yourself manually, you do say char * the variable name because recall that's the same thing that we did earlier but we called it instead string.
当你手动声明一个指针是,你可以说char,*,变量名字,因为那是我早些时候做的事情,但是我们叫它为字符串。
And actually, if I don't want to clobber, as we say, overwrite the value of my variable, ; I could declare another one and store the return value in Y; Y so now I have two ints in memory; X and Y, 3 one with two, one with three.
实际上,如果你不想彻底清除,像我们说的,覆盖那个变量的值,我可以申明另一个变量Y,并在Y中保存那个返回值;,现在内存中有两个int数,X和,一个的值为2,一个为。
应用推荐