typedef

小编 分享 时间:
typedef是什么意思
英式音标:英式读音
美式音标:美式读音
词义:

n. 定义类型

英英释义

Typedef

typedef is a keyword in the C and C++ programming languages. The purpose of typedef is to form complex types from more-basic machine types and assign simpler names to such combinations.

以上来源于:Wikipedia

用法:

词汇搭配

短语

typedef struct 记录类型 ; 顺序链表结构 ; 颜色定义 ; 定义运算符栈

typedef stdstring字符串

TYPEDEF PTR的用法

typedef union颜色分量交换结构

typedef sequenceBinaryFile用于文件的交互

typedef char字符型

typedef f重新进行数据类型定义

typedef int整型

typedef float浮点型

更多收起网络短语

双语例句

Thisbringsustothe first

typedef

trap.

这里将带我们到达第一个

typedef

陷阱。

blog.163.com

Thesecomplextypescanbeenumerations,structures,andunions,oryoucanuse

typedef

tocreateanewname for a type.

这些复杂的类型可以是枚举、结构和联合,或者您可以使用

typedef

来创建类型的新名称。

www.ibm.com

Anotherwaytorefer tothetypeofanexpressioniswithtypeof.Thesyntaxofusingofthiskeywordlookslikesizeof,but the construct acts semantically likeatypenamedefinedwith

typedef

.

另一种引用一个表达式类型的方法就是使用typeof,使用这个关键字的语法看上去有点像使用sizeof,但从本质上讲,它更像是使用

typedef

定义一个类型名称。

更多双语例句

权威例句

std::basic_ostringstream< CharT, Traits, Alloc > Class Template Reference

std::basic_istringstream< CharT, Traits, Alloc > Class Template Reference

std::ostream_iterator< Type, CharT, Traits > Class Template Reference

__gnu_cxx::stdio_filebuf< CharT, Traits > Class Template Reference

std::basic_ifstream< CharT, Traits > Class Template Reference

std::basic_filebuf< CharT, Traits > Class Template Reference

std::basic_iostream< CharT, Traits > Class Template Reference

Providing tokens to access federated resources

Programmable processor

Remote direct memory access system and method
造句:

1. Accessing typedef enum by the number?

访问类型定义枚举的号码吗?

youdao

2. A typedef is used to give the type a shorter name of sp_args.

typedef用来给类型一个短名sp_args。

youdao

3. It will make your method more readable if you typedef a float to be used within this method.

如果在该方法中使用typedef float语句,这将使该方法更具可读性。

youdao

4. The typedef keyword must be present, unless you are specifying the arrays as part of a structure.

必须出现typedef关键字,除非指定的数组是结构的一部分。

youdao

5. You should use typedef to create a new name for a type that will help clarify the interface or save typing.

应该使用typedef创建新的类型名称,这将帮助解释接口或保存输入。

youdao

6. These complex types can be enumerations, structures, and unions, or you can use typedef to create a new name for a type.

这些复杂的类型可以是枚举、结构和联合,或者您可以使用typedef来创建类型的新名称。

youdao

7. You could use a typedef to define a callback and make clients supply it, something similar to qsort-but that's so old-hat.

你可以用typedef来定义一个回调并让客户机来提供这个回调,这种做法有些类似qsort——但那样太老土了。

youdao

8. To model a C++ typedef, create a UML class and apply the cpp_typdef stereotype on it. This stereotype provides three property/value pairs

要建模 C++typedef,需要创建一个UML类并在其上应用 cpp_typdef 原型。

youdao

9. The BindingClass is transformed as a typedef element, and you will get a list with ParamClass in MyClass. Similarly, you can have a list of any type.

BindingClass被转换为一个typedef元素,然后您会得到一个MyClass中带有ParamClass的list,您可以拥有任意类型的list。

youdao

10. Therefore, two parameters that differ only in that one uses a typedef and the other uses the type to which the typedef corresponds are not different.

所以,如果两个形参的差别只是一个使用typedef 定义的类型名,而另一个使用typedef对应的原类型名,则这两个形参并无不同。

youdao

11. A typeof-construct can be used anywhere a typedef name could be used. For example, you can use it in a declaration, in a cast, or inside of sizeof or typeof.

typeof能被用在任何需要引用类型名的情况下,比如你可以用在声明、显示类型转换(cast)或是在sizeof和typeof内使用。

youdao

12. In theory the compiler should silently ignore duplicate typedef declarations, however many do not do so (and even if they do they are entitled to emit warnings in such cases).

理论上说,编译器应该忽略断言副本,但是许多编译器并不这样做(即使这些编译器能够对此给出警告信息)。

youdao

13. In theory the compiler should silently ignore duplicate typedef declarations, however many do not do so (and even if they do they are entitled to emit warnings in such cases).

理论上说,编译器应该忽略断言副本,但是许多编译器并不这样做(即使这些编译器能够对此给出警告信息)。

youdao

typedef

将本文的Word文档下载到电脑,方便收藏和打印
推荐度:
点击下载文档文档为doc格式