Notice the way the variable name is declared in both versions of the program.
请注意在这个程序的两个版本中声明变量名的方式。
You can add an optional argument, a variable that holds the return code from the external program, such as 0 for success, which provides a better mechanism for debugging.
您可以添加可选的参数,即保存从外部程序返回的代码的变量,比如表示成功的0,这为调试提供更好的机制。
Let's start by looking at a common technique in many PHP applications: placing certain kinds of information in variable assignment statements at the top of the program.
让我们首先查看许多PHP应用程序中的一项常用技术;将某些种类的信息存入程序开头的变量赋值语句中。
Listing 3 shows the variable declaration and subroutine calls from the program header.
清单3显示了程序头文件中的变量声明和子例程调用。
When executed from a command line, the program reads the XML content from a file into a string variable.
在命令行中执行的时候,该程序将XML内容从文件读入一个字符串变量。
The program transfers the array nodes into more descriptive variable names, making the code easier to follow.
该程序将数组节点转换为说明性更强的变量名,从而使代码更易于阅读。
If the program is already linked, you can also change this behavior by setting the environment variable LD_LIBRARY_PATH.
如果程序已经被链接,那么您也可以设置环境变量ld_library _ PATH来改变这一行为。
Variable names are usually chosen so that programmers who read the program in the future can easily tell how each variable is used.
变量名经常会被用到,这样以后阅读这段程序的程序员就很容易就可以看到每个变量是如何使用的。
We decrement so to speak the variable and then where will we go next in terms of the flow control, the flow of this program.
可以这么说,我们递减这个变量,然后按照控制流,即程序流进入到下一语句。
With the base variable declarations and subroutine complete, the program moves on to the main program loop, shown below.
完成了基本变量声明和子例程后,程序将继续进行主程序循环,如下所示。
It also creates a global variable that refers to the SPE program so that the PPE can load the program into the SPEs and run the program as needed.
它还会创建一个引用SPE程序的全局变量,这样ppe就能够将程序加载到SPE中并根据需要来运行程序了。
That variable is the handle to the program code, which will be used to create your SPE tasks.
那个变量就是到程序代码的句柄,用来创建SPE任务。
The code will need to handle populating that variable with the document supplied to the program through the command line.
代码需要使用由命令行传递给程序的文档来填充该变量。
The most common types of variable pay for most employees are bonuses and incentive program payments.
很多和可变工资主要是奖金和激励计划。
In the count example program, a stem variable maps a word to the number of times that word occurs.
在count示例程序中,它使用一个stem变量将单个字映射到该字的出现次数。
To have a variable hold this kind of list in a program, all you need is to have a pointer that points to type struct ll_int_node.
要在程序中使用一个变量来容纳这种链表,您需要做的只是使用一个指向类型struct ll_int _ node的指针。
In the Add2Integers program, the variables n1 and n2 represent the integers to be added, and the variable total represents the sum.
在Add2Integers程序中,变量n1和n2代表了即将被相加的两个整数,变量to tal代表了相加之后的和。
If you set this variable, TCSH displays the exit status whenever a script or program returns a non-zero value, thereby indicating a potential error.
如果设置这个变量,那么当脚本或程序返回非零值时tcsh会显示退出状态,这会指出潜在的错误。
Anytime these objects are needed in a Python program, the variable just references one as appropriate.
在任何时候,在Python程序需要这些对象时,变量只能相应地引用其中一个值。
When we "export" an environment variable under bash, any subsequent program that we run can read our setting, whether it is a shell script or not.
当在bash中“导出”环境变量时,以后运行的任何程序,不管是不是shell脚本,都可以读取设置。
Tracing the logic flow through the program, you see that the first time through the loop, the value of the variable I becomes 5.
通过跟踪程序的逻辑流可以看到,第一次通过循环后,变量i的值变为5。
A neat example shows a Perl program written in UTF-8 encoding, so the variable names can use non-ASCII letters.
在采用UTF - 8编码的Perl程序例子中,你会看到变量的名字可以是非ascii字符。
It launches a special program, env, that in turn launches the first instance of squirrelsh found in your PATH variable.
它启动了一个特殊的程序env,此程序又启动PATH变量中找到的第一个squirrelsh实例。
In a thread-safe program, only one writing thread can modify the variable; other threads can read the up-to-date value by declaring the variable volatile.
在一个线程安全的程序中,只有一个写线程能够修改这个变量;而其他的线程则可以读取volatile声明变量的最新值。
To complete the modifications, add my %jobMP = (); my %nameMP = (); to the variable declaration section and modify the main program logic from Listing 14 to Listing 15.
要完成修改,请将my %jobMP = (); my %nameMP = ();添加到变量声明部分中并将主程序逻辑从清单14修改为清单15。
Now, there will be an executable program in your directory that, when run, will print the value of the EDITOR environment variable, if any. This is what happens when I run it on my machine.
现在,目录中将有一个可执行程序,它在运行时将打印EDITOR环境变量的值(如果有值的话)。
The running program will evaluate the expression in Listing 1 twice, with the $exp variable set to and .
运行的程序将对清单1 中的表达式进行二次求值,其中 $exp变量分别被设置为和 。
As noted in the discussion of the Add2Integers program in Chapter 2, you must explicitly specify the data type of each variable when you introduce it into a program.
正如第二章中的Add2Integers这个程序里讨论的,你需要在把每个变量引入程序的时候明确指出它的数据类型。
The fetching program can be left bare, or it can require some kind of user login, cookie, or session variable before it retrieves the file.
获取程序可以不采用安全措施,也可以要求提供某种用户登录、Cookie或会话变量才能检索这些文件。
The fetching program can be left bare, or it can require some kind of user login, cookie, or session variable before it retrieves the file.
获取程序可以不采用安全措施,也可以要求提供某种用户登录、Cookie或会话变量才能检索这些文件。
应用推荐