複習結構體

結構體: 定義:在c語言中爲數據類型的集合,不是變量類型。寫在主函數外面。 struct+結構體名稱 {     }變量名錶列; 實例程序: #include <stdio.h> #include<stdlib.h> #include<string.h> struct student//定義結構體名稱 {   char name[20];   int age;   char sex;   int
相關文章
相關標籤/搜索