»
(04)C++14 结构体
(18)C++14 智能指针及引用计数*
(19)C++14 多线程pthread*
(20)C++14 同步锁mutex*
(24)C++中的计时与等待*
(25)C++中的高精度计算*
(27)C++14 std::string*
(31)C++高级技能*
typedef struct linked_table_item{
struct linked_table_item* prev;
struct linked_table_item* next;
int data_type;
char* data;
} linked_table_item;
typedef的用法是定义什么叫什么。
其中,内部的*prev和*next必须使用带struct关键词的struct linked_table_item来定义。
结构体的存储空间要注意系统会自动补位对齐:1、2、4、8