其它数据类型
来源:互联网 发布:桌面壁纸软件哪个好 编辑:程序博客网 时间:2024/05/16 04:50
Defined data types (typedef)
typedef char C;typedef unsigned int WORD;typedef char * pChar;typedef char field [50];
C mychar, anotherchar, *ptc1;WORD myword;pChar ptc2;field name;
联合
union union_name { member_type1 member_name1; member_type2 member_name2; member_type3 member_name3; . .} object_names;
union mytypes_t { char c; int i; float f; } mytypes;
mytypes.c
mytypes.i
mytypes.f
union mix_t { long l; struct { short hi; short lo; } s; char c[4];} mix;
union mix_t { long l; struct { short hi; short lo; } s; char c[4];} mix;
匿名联合
struct { char title[50]; char author[50]; union { float dollars; int yen; } price;} book;
struct { char title[50]; char author[50]; union { float dollars; int yen; };} book;
book.price.dollarsbook.price.yen
book.dollarsbook.yen
枚举
Enumerations (enum)
enum enumeration_name { value1, value2, value3, . .} object_names;
enum colors_t {black, blue, green, cyan, red, purple, yellow, white};
colors_t mycolor; mycolor = blue;if (mycolor == green) mycolor = red;
enum months_t { january=1, february, march, april, may, june, july, august, september, october, november, december} y2k;
- 其它数据类型
- 十三、其它数据类型
- 其它数据类型转换为字符串
- 黑马程序员-C其它数据类型-学习笔记
- C语言学习笔记(六)其它数据类型
- 黑马程序员-C语言笔记(九)其它数据类型
- PHP学习笔记——php变量其它数据类型;
- 其它
- 其它
- 其它
- 其它
- 其它
- 其它
- 其它
- 其它
- 其它
- 其它
- 一个变量被赋予了某个数据类型的值,可以随时再赋予这个变量其它数据类型的值
- 编译Android .so文件
- SOCKET, TCP/UDP, HTTP, FTP
- MySQL学习
- layer
- c# image GDI+发生一般性错误 & c# wpf use winform‘s Image
- 其它数据类型
- 项目中发现在ie6和ie7里面overflow:hidden无效
- iOS开发-String和NSArray的简单使用
- Gesture Recognizers与触摸事件分发
- java编程!---实现任意数组的倒叙
- js 使FORM表单的所有元素不可编辑的示例代码
- 评定需求优先级的小工具
- 我希望在软件开发生涯初期就知道的4件事
- javascript中负数算术右移、逻辑右移的奥秘探索