结构体数组访问与修改
-
结构体数组详解:从定义到实战,轻松掌握C语言数据管理
struct Student { char name[20]; int age; float score; }; struct Student students[50]; // 定义能存放50个学生信息的数组 struct Student { char name[20]; int age; float score; }; struct Student students[3] = { {"张三", 18, 90.5}, {"李四", 19, 88.0}, {"王五", 20, 92.5} }; struct...

