常量可以不用理会变量的作用域而在任何地方定义和访问; 变量范围的另一个重要特性是静态变量(static variable)。静态变量仅在局部函数域中存在,但当程序执行离开此作用域时,其值并不丢失。
基于8个网页-相关网页
external static variable [计] 外部静态变量
Static variable frequency starting device 静止变频启动装置
local static variable 本地静态变量
Static Variable Names 静态变量名称
static variable ordering 静态变量的排序
static variable frequency 静止变频
static variable frequency system 静态变频系统
static variable frequency starting 静止变频起动
Replace Static Variable with Parameter 以参数变量取代静态变量
以上来源于: WordNet
The handler code in Listing 1 reads the message body and assigns it to a static variable.
清单 1 中的处理程序代码将读取消息主体,并将其赋值给静态变量。
Note that readdir is not thread-safe, because the returned structure is a static variable stored in the function library.
请注意,readdir不是线程安全的,因为所返回的结构是存储在函数库中的一个静态变量。
Listing 4 presents the Scheme functions, which implement the same behavior, but the first with an argument and the second with a static variable.
清单4展示了Scheme函数,这些函数实现相同的行为,但是第一个函数有一个参数,第二个函数有一个静态值。
应用推荐