struct 结构体笔记
来源:互联网 发布:淘宝客服销售是干什么 编辑:程序博客网 时间:2024/06/05 08:26
1)
struct tag { member-list } variable-list ;
tag:结构体标签 variable:结构体变量 member-list:结构体成员
2)
struct { int a; char b; double c; } s1; s1.a=123; s1.b="123"; s1.c=1.23;
想要s2 也声明成上面的结构体怎么办?看下面哈
3)
struct SIMPLE{ int a; char b; double c; }; struct SIMPLE t1, t2[20], *t3; struct SIMPLE t2; //这里struct SIMPLE (相当于int,float)
//这里声明居然要2个单词 下面就不用了
4)
typedef struct Simple2{ int a; char b; double c; } S2; S2 u1, u2[20], *u3;
相当于
struct Simple2{ int a; char b; double c; }; typedef struct Simple2 S2; S2 u1, u2[20], *u3;
5)
typedef struct{ int a; char b; double c; } S2; S2 u1, u2[20], *u3; //可以省略上面的Simple2
6)
@interface Person:NSObject{ int a; int b; } @end
1 0
- struct 结构体笔记
- 结构体struct基本使用笔记
- golang结构体struct学习笔记
- Objective-C学习笔记-之结构体struct
- C语言学习笔记(十二) -结构体 Struct
- C++学习笔记二十二 - 简单的结构体struct
- 2017-8-9学习笔记(struct结构体)
- struct platform_driver 结构体的阅读笔记(3.0.35)
- 结构体(struct) 用法
- 结构体struct module
- 什么结构体 struct
- struct结构体
- struct hostent结构体
- struct hostent结构体
- struct termios结构体
- struct hostent结构体
- 结构体(struct)
- struct termios结构体
- C++中的new/delete运算符与operator new/operator delete函数
- hdoj 3642 Get The Treasury 【线段树 扫描线 求立方体积交】
- MySQL优化
- python numpy:1 numpy.array和numpy.matrix常用函数使用
- Linux time()函数解析
- struct 结构体笔记
- Tomcat配置常见错误以及解决方案
- 木兰花
- zmq中zmq_poll()函数介绍
- Codeforces Round #334 (Div. 2) B. More Cowbell
- spi子系统 赏析
- [python语法巩固][leetcode326][Power of Three]
- Linux系统中System.map的解析
- C++学习笔记41——重载操作符之下标操作符