go top

static variable

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

专业释义英英释义

  • 静态变数
    静态变量
  • 静态变数

·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
- 来自原声例句
小调查
请问您想要如何调整此模块?

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

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