请输入您要查询的英文单词:

 

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

    [数]?静态变量

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

短语
  • 双语例句
  • 1
    The handler code in Listing 1 reads the message body and assigns it to a static variable.
    清单 1 中的处理程序代码将读取消息主体,并将其赋值给静态变量。
  • 2
    Note that readdir is not thread-safe, because the returned structure is a static variable stored in the function library.
    请注意,readdir不是线程安全的,因为所返回的结构是存储在函数库中的一个静态变量。
  • 3
    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函数,这些函数实现相同的行为,但是第一个函数有一个参数,第二个函数有一个静态值。
随便看

 

英汉双解词典包含3185865条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2022 Newdu.com All Rights Reserved
更新时间:2025/2/15 1:45:13