typedef type-declaration synonym ;
The typedef keyword defines a synonym for the specified type-declaration. The identifier in the type-declaration becomes another name for the type, instead of naming an instance of the type. You cannot use the typedef specifier inside a function definition.
A typedef declaration introduces a name that, within its scope, becomes a synonym for the type given by the decl-specifiers portion of the declaration. In contrast to the class, struct, union, and enum declarations, typedef declarations do not introduce new types — they introduce new names for existing types.
Example
posted on 2006-12-10 23:08 bullGao 阅读(281) 评论(2) 编辑 收藏 引用 所属分类: C++ programming
好怪的代码 回复 更多评论
这下好了@Dain 回复 更多评论