iOS结构体
1.结构体的创建
struct name {
int age;
int phone;
}
初始化结构体
struct name = {20,13100001111},
2创建
struct {
int age;
int phone
}name;
第三种,继承
typedef struct {
int age;
int phone;
}nameInfo
iOS结构体
1.结构体的创建
struct name {
int age;
int phone;
}
初始化结构体
struct name = {20,13100001111},
2创建
struct {
int age;
int phone
}name;
第三种,继承
typedef struct {
int age;
int phone;
}nameInfo