extern是什么意思 extern的中文翻译、读音、例句

生活学习2024-02-19 15:10:01孤心泪

extern是什么意思 extern的中文翻译、读音、例句

1. 词性:名词、形容词、副词

2. 意思:在计算机编程中,extern通常用来声明一个变量或函数是在程序的其他文件中定义的,表示这些变量或函数是外部可见的。

3. 常用场景:在C语言、C++等编程语言中常用。

4. 词组搭配:

- extern声明:表示一个变量或函数是在其他文件中定义的。

- extern函数:表示一个函数在其他文件中定义。

- extern变量:表示一个变量在其他文件中定义。

- extern链接:表示将不同源文件中的符号链接在一起。

5. 相关短语:

- extern "C": 表示使用C语言的函数调用约定,可以使得不同语言编写的代码能够进行相互调用。

- static extern:表示一个变量或函数在当前文件中的定义是静态的,但在其他文件中也能够被使用。

6. 发音拼写:[ek-sturn]

extern的意思是“外部的”、“外来的”。它通常用于C语言中表示“外部链接”,即表示该变量或函数在其他文件中定义或声明。在C++中,extern也可以用于声明外部的函数或变量。

读音:[kstrn]

例句:

1. We need to declare the variable as extern if it is defined in another file.

如果变量在另一个文件中定义,我们需要将其声明为extern。

2. The extern function is defined in a different module.

该extern函数在另一个模块中定义。

extern在中文中有"外部、尤指"的意思,在英美地区还有"外部变量"的意思,单词读音音标为[eks't:n],extern常被用作名词,在《英英汉-英英汉词典》中,共找到71个与extern相关的例句。

Extern的词典翻译

1.外部

例句:An extern declaration is not a definition and does not allocate storage. (extern声明不是定义,也不分配存储空间。)

2.尤指

例句:This is only an extern reference, not the declaration itself. (这只是个extern引用,而非声明本身。)

3.外部变量

例句:Indexer modifiers like new, virtual, extern etc. are available as stereotype properties. (索引器修饰符,像new、virtual、extern等等用作原型属性。)

4.不住机构内的工作人员、外部变量

例句:Indexer modifiers like new, virtual, extern etc. are available as stereotype properties. (翻译:索引器修饰符,像new、virtual、extern等等用作原型属性。)

用法及短语

extern一般作为名词、形容词使用,如在medical extern([网络] 医疗EXTERN)、vv. nasales extern?(鼻外静脉)等常见短语中出现较多。

medical extern[网络] 医疗EXTERN
vv. nasales extern?鼻外静脉

例句

1. Indexer modifiers like new, virtual, extern etc. are available as stereotype properties. (翻译:索引器修饰符,像new、virtual、extern等等用作原型属性。)

2. Indexer modifiers like new, virtual, extern etc. are available as stereotype properties. (翻译:索引器修饰符,像new、virtual、extern等等用作原型属性。)

3. How to set value of extern variable? (翻译:如何设置走读生变量的值呢? )

4. Ocean scale computation will solve the problem that wave numerical computations lack of extern boundaries. (翻译:而海洋尺度的计算将解决近岸波浪模型计算缺少准确外边界的难题。)

5. A common use of the extern modifier is with the DllImport attribute when you are using Interop services to call into unmanaged code. (翻译:extern修饰符的常见用法是在使用Interop服务调入非托管代码时与DllImport属性一起使用。)

近义词&反义词

extern作为名词、形容词的时候,其近义词以及反义词有s、externs等。



相关推荐