黑馬程序員匠心之作|C++教程從0到1入門編程--練習-結構體數組

作用:將自定義的結構體放入到數組中方便維護 語法:struct 結構體名 數組名[元素個數] = { {} , {} , … {} } #include #include using namespace std; struct Student { string name; int age; int score; }; int main() { struct Student arr[3]= { {「
相關文章
相關標籤/搜索