摘要: 结构体 1.结构体的定义 结构体是一种自定义数据类型,允许用户存储不同的数据类型 struct 结构体名字 {结构体成员列表} 通过结构体创建变量的方式有三种 struct student { string name; int age; int score; }s3;//第三种 int main() 阅读全文
posted @ 2021-06-01 11:35 pleasurea 阅读(149) 评论(0) 推荐(0)