GLOBAL VARIABLES - 翻译成中文

['gləʊbl 'veəriəblz]
['gləʊbl 'veəriəblz]
全局变量
global variable
globals
局变量
global variables

在 英语 中使用 Global variables 的示例及其翻译为 中文

{-}
  • Political category close
  • Ecclesiastic category close
  • Programming category close
Global variables, which exist for the whole lifetime of the program("static extent"), and which are usually accessible in lots of different functions.
全局变量,存在于程序的整个生命周期(globalextent)而且通常能被多个不同的函数访问.
Global variables and constants(a. k. a. literals or immediates, like 5) are also Values.
全局变量和常数(或者说字面值,立即数,比如5)都是值。
JavaScript environments contain a number of built-in global variables, such as window in browsers and process in Node. js.
JavaScript环境包含很多内置的全局变量,比如浏览器环境的window和Node.js中的process。
Apart from dividing variables in local and global variables, we can also divide them in categories according to the sort of content the variable contains.
除了把变量分为本地和全局变量,我们也可以根据变量所含内容的类型来分。
Thus, the author of a module can use global variables in the module without worrying about accidental clashes with a user's global variables.
因此,模块的作者可以在模块内部使用全局变量,而无需担心它与某个用户的全局变量意外冲突。
Global variables scope extends to the whole execution of the program, no matter if we use them inside functions or not.
全局变量范围扩展到程序的整个执行,无论我们是否在函数内部使用它们。
The danger of global variables is that someone else could create a variable with the same name and overwrite the variable you are using.
全局变量的危险之处在于其他人可以创建相同名称的变量,然后覆盖你正在使用的变量。
This is useful for cases where a function needs to keep some state between invocations, and you don't want to use global variables.
这对于函数需要在调用之间保持某种状态,并且你不想使用全局变量的情况很有用。
You may not understand this example at this time because I have used function and global variables, which I have not explained so far.
可能您现在还无法理解这个实例,因为我已经使用了函数和全局变量,这两个概念目前为止还没进行讲解。
This method will receive as first argument the address and as second the port, both defined early in global variables.
此方法将接收地址和第二个端口作为第一个参数,两者都在全局变量的早期定义。
For example, the implementation of a function will still use assignments to local variables, but won't modify global variables or have other side effects.
比如,函数的实现仍然会使用局部变量,但不会修改全局变量或者有其他副作用。
Local variables can only be accessed inside the function they are declared, and global variables can be accessed throughout the program.
局部变量只能在其被声明的函数内部访问,而全局变量可以在整个程序范围内访问。
All data is stored within this array- effectively replacing global variables, data structures, closures, and any other forms of data storage.
所有的数据在这个数组中存储--有效的替代了全局变量,结构体,闭包和其他形式的数据存储。
Thus, global variables cannot be directly assigned a value within a function(unless named in a global statement), although they may be referenced.
因此,在函数内部无法给一个全局变量直接赋值(除非在一个global语句中命名),虽然可以引用它们。
In the C programming language, static is used with global variables and functions to set their scope to the containing file.
在C编程语言中,static与全局变量和函数一起使用,以将其范围设置为包含文件。
Use regular Tcl global variables only for values that you specifically intend to be shared among multiple functions.
而把普通Tcl全局变量只用于那些你想在多个过程之间共享的变量。
After the script has been executed, we can see in Figure 4 that all the global variables have been renamed to the appropriate function name.
脚本执行完毕后,可以在图4中看到所有的全局变量已经被重命名为相应函数的名称。
If you quit your session, all your global variables were saved by the system to a disk file.
如果你退出一次编程会话,你所有的全局变量就被系统存到磁盘上的一个文件里。
Some compilers store uninitialized global variables in the common section and put them in the BSS section when linking.
某些编译器将未初始化的全局变量保存在common段,链接时再将其放入BSS段。
This is because the global variables of the module are private to the module and cannot be retrieved by other modules.
这是因为模块的全局变量都是该模块私有的,其他模块无法取到。
结果: 194, 时间: 0.0343

单词翻译

顶级字典查询

英语 - 中文