C++ Foundation —— (04) C++14 struct (Not translated)
»
    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
«
--Alex.Zhang
--www.v-signon.com Learningers Co-Encouraged
Back
Personal Art: www.up-task.com Unit: Individual
中文 Русский 京ICP备19038994号-2
If the content on this website infringes upon your any rights, please contact me at 1307776259@qq.com for removal