typedef
来源:互联网 发布:淘宝达人赚钱 编辑:程序博客网 时间:2024/06/05 03:56
// - typedef 用来定义数据类型 就是给数据类型起了个别名
typedef int myInt;
typedefmyInt myInt1;
typedef char* String;
typedef struct strName{
int age;
char * name;
int weigth;
}name;
typedefint(*myPoint)(int a,int b);
int sunm(int a,int b){
return a+b;
}
struct Person{
int age;
};
myInt i =1
String name = "我擦了"
structstrName strName1 = {10,"sssdfsd",24};只有用了上边的那种定义结构体 才可以像前边的那样定义
name name1 = {15,"sdfsd",23};
// - 指向函数的指针
myPoint p =(3,6);
// - 指向结构体的指针
struct Person person1 = {12};
struct Person* poin1 = &person1;
0 0
- typedef
- typedef
- typedef
- typedef
- typedef- -
- typedef
- typedef
- typedef
- typedef
- typedef
- Typedef
- typedef
- typedef
- typedef
- typedef
- typedef
- typedef
- typedef
- A. Case of the Zeros and Ones(Codeforces Round #310 (Div. 2) 栈)
- android AudioManager类 详解
- oracle卸载
- iOS —— 设备信息获取
- 重装windows后修复grub2引导
- typedef
- 上班族英语用语:今天你加班吗?
- PPT(PowerPoint)基础使用技巧
- Flume案例
- 图像识别中的深度学习
- ie6/7/360安全模式下,浮动的li不能自动换行的问题
- 每天进步一点点—SQL优化
- 利用windowManager在所有窗口之上填出一个界面,类似来电界面。
- NYOJ 坦克大战(宽度优先搜索)