摘要: 结构体的好处:数组只能存放相同类型的数据,结构体可以存放不同的数据类型。 结构体的定义: struct student{ int age; string name; }stu; 对象的定义:stu.age=10; stu.name='a'; typedef的作用:户使用 typedef 关键字来定义 阅读全文
posted @ 2019-08-05 20:38 learnNoob 阅读(206) 评论(0) 推荐(0) 编辑