自定義類型(結構體,位段,枚舉,聯合)總結

結構體 結構體(struct)是由一系列具有相同類型或不同類型的數據構成的數據集合,也叫結構。 結構體的定義方式: struct 結構體名{     結構體所包含的變量或數組 }; 例如: struct Student{      //聲明一個結構體類型Student   int num;           char name[20];     char sex;         int age
相關文章
相關標籤/搜索