摘要: [C++语法] 关键字typedef用法(转)C/C++语言中的typedef相信大家已经不陌生,本文对C/C++语言关键字typedef的各种用法作一个介绍。typedef,顾名思义,为“类型定义”,可以解释为:将一种数据类型定义为某一个标识符,在程序中使用该标识符来实现相应数据类型变量的定义。例如:typedef unsigned int UINT;int main (int argc, char *argv[]){unsigned int a;// it’s OKUINT b;// it’s OK, a and b are of the same type (int)// . . .// 阅读全文
posted @ 2012-04-20 22:48 Gentoo 阅读(296) 评论(0) 推荐(0) 编辑