go top

static variable

  • 静态变量:在计算机编程中,静态变量是一种在程序运行期间保持其值不变的变量。它通常用于在多个函数或类之间共享数据。

网络释义专业释义英英释义

  [数] 静态变量

常量可以不用理会变量的作用域而在任何地方定义和访问; 变量范围的另一个重要特性是静态变量static variable)。静态变量仅在局部函数域中存在,但当程序执行离开此作用域时,其值并不丢失。

基于8个网页-相关网页

短语

external static variable [计] 外部静态变量

Static variable frequency boot device 静止变频启动装置

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 静止变频起动

 更多收起网络短语
  • 静态变数
    静态变量
  • 静态变数

·2,447,543篇论文数据,部分数据来源于NoteExpress

Static variable

  • abstract: In computer programming, a static variable is a variable that has been allocated statically—whose lifetime or "extent" extends across the entire run of the program. This is in contrast to the more ephemeral automatic variables (local variables are generally automatic), whose storage is allocated and deallocated on the call stack; and in contrast to objects whose storage is dynamically allocated in heap memory.

以上来源于: WordNet

双语例句

  • The handler code in Listing 1 reads the message body and assigns it to a static variable.

    清单 1 中的处理程序代码读取消息主体将其值给静态变量。

    youdao

  • Note that readdir is not thread-safe, because the returned structure is a static variable stored in the function library.

    注意readdir不是线程安全的,因为返回结构存储函数库中的一个静态变量

    youdao

  • 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函数这些函数实现相同行为但是第一个函数参数第二个函数有一个静态值。

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定