C++中结构体的声明和定义的用法
C++中结构体的声明和定义的用法:1 //定义一个结构体,类型为struct Student2 struct Student 3 {4 string name;5 double eng;6 double ch;7 }; 8 9 //定义了一个结构体,类型为struct Student;且定义了一个结构体实例,名叫Stu10 struct Student 11 {12 string name;13 double eng;14 double c...