摘要: 一、结构体的定义1、定义形式struct 结构名{成员列表;}; //定义为语句,分号不能丢2、结构类型变量的声明(1)声明形式1struct student{ int number; char name[10]; float score;};struct student st1,st2,st3;(2)声明形式2struct student{ int number; char name[10]; float score;}st1,st2,st3;(3)结构体变量的赋值如上例:struct student{ int number; char name[10]; float score;}st1= 阅读全文
posted @ 2013-06-09 16:03 tsembrace 阅读(2995) 评论(1) 推荐(1) 编辑