結構體變量的初始化和賦值

下面是一段結構體變量初始化和賦值的小程序:web #include <stdio.h> struct Student { int age; float score; char sex; }; int main(void) { //定義並賦值稱之爲初始化 struct Student st1 = {80, 66.0F, 'F'}; //定義聲明結構體變
相關文章
相關標籤/搜索