typedef用法
来源:互联网 发布:gbk转utf8 java 编辑:程序博客网 时间:2024/06/03 22:40
typedef声明新的类型来代替已有的类型的名字。
如:
typedef int INTEGER;
下面两行等价
int i;
INTEGER i;
可以声明结构体类型:
typedef struct
{
int age;
int score;
}STUDENT;
定义变量:
只能写成 STUDENT stu;
如果写成
typedef struct student
{
int age;
int score;
}STUDENT;
下面三行等价:
STUDENT stu;
struct student stu;
student stu;
如:
typedef int INTEGER;
下面两行等价
int i;
INTEGER i;
可以声明结构体类型:
typedef struct
{
int age;
int score;
}STUDENT;
定义变量:
只能写成 STUDENT stu;
如果写成
typedef struct student
{
int age;
int score;
}STUDENT;
下面三行等价:
STUDENT stu;
struct student stu;
student stu;
0 0
- TYPEDEF用法
- typedef用法
- typedef用法
- typedef用法
- typedef用法
- typedef用法
- typedef用法
- typedef 用法
- typedef用法
- typedef用法
- typedef 用法
- typedef用法
- typedef用法
- typedef用法
- typedef用法
- typedef用法
- typedef用法
- typedef用法
- bootstrap小笔记 各种组件(轮播图/模态框/菜单监听....)
- Linux中的线程局部存储
- hdoj 2102 A计划(简单bfs)
- webview找不到网页解决办法
- Java集合详解--什么是Set
- typedef用法
- it-tcpip协议
- QT5.7 + VS2015
- c++读书笔记之const篇
- JavaScript,类与对象,获取html元素的两种方法
- ubuntu1604-ros-kinetic搭建
- php关掉警告warning
- Linux线程的信号量同步
- 在Eclipse中添加git插件及其使用方法