也可以像清单27这样编写函数。
那么让我们投入进去,开始编写函数吧。
编写函数时的主要思想是,尽量减少从其它代码对其的调用。
The idea is to write a function to minimize calls to it from other code.
编写函数,求查找成功时的平均查找长度(asl)。
Write a function, seeking to find the average successful search length (ASL).
还可以立即保存在命令行上编写的任何函数。
You can also instantly save any function you write at the command line.
让我们编写一个输入函数来从文件中读取相应的行。
Let's write an input function to get the relevant lines from the file.
因此在编写一个全新的扩展函数时,实例方法并非首选。
Thus they're rarely the first choice when writing a new extension function.
用其他语言编写自己的扩展函数通常费时费力。
To write your own extension function in another language is often complex and time consuming.
现在只需要编写一个执行查询的函数。
Now, all that's left is to build a function for executing this query.
接下来,编写一个函数显示blog中的这些post。
在c语言中可以编写一个简单的函数。
为简单起见,编写两种情况下都可以使用的一个check_count函数,如下面的清单所示。
To simplify things, write a check_count function you can use in either case, as shown below.
我们需要使用回调函数来编写代码。
创建一个名为Application的类并编写如清单2中所示的相当直观的main函数。
Create a class named Application and write the straightforward main function shown in Listing 2.
编写处理onclick事件的函数,见清单8。
Write the function for handling the onclick event, shown in Listing 8.
compose_drag_handlers()函数很容易编写。
整个转换过程被编写在函数 render_geometries 中。
The whole conversion process is coded in function render_geometries.
当使用函数式语言编写代码时,您会以不同的方式思考问题的解决方案。
When you code in a functional language, you think about solutions to problems differently.
使用“静态”方法,可以编写如下的函数。
Usage函数,应该首先编写这个函数。
这些链接引用answer _ question函数(稍后编写这个函数)。
These links are constructed to refer to the answer_question function you'll write in a moment.
当在大型应用程序中使用回调函数,就会导致编写出很难阅读的意大利面式代码。
which, when used on a larger scale, can lead to hard to read spaghetti code.
我怎样为这个派生类编写移动赋值函数?
How do I write the move assignment function for this derived class?
如何编写一个递归函数吗?
编写创建表格的PHP函数。
使用该函数编写一个程序,每次颠倒一个输入行中的字符顺序。
Use it to write a program that reverses its input a line at a time.
通过将职责委托给公用的构造函数,你编写的代码也最少。
You also write the least code by delegating responsibilities to a common constructor.
这是个用C语言编写的鼠标的函数,简单实用。
This is a C language function of the mouse, simple and practical.
还必须编写一个成员,那就是构造函数。
There's one more member that we need to write: a constructor.
还必须编写一个成员,那就是构造函数。
There's one more member that we need to write: a constructor.
应用推荐