常量可以不用理会变量的作用域而在任何地方定义和访问; 变量范围的另一个重要特性是静态变量(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不是线程安全的,因为所返回的结构是存储在函数库中的一个静态变量。
Therefore, you should perform the JNDI lookup once only, and then store the retrieved home object (for example in an instance or static variable).
因此,您应仅执行该 JNDI 查询一次,然后存储所检索到的主对象(例如,存储在实例中或静态变量中)。
应用推荐