如何取出结构体中的每一个成员变量:
#include <stdio.h>
struct Student
{
int age;
float score;
char sex;
};
int main(void)
{
struct Student st = {80, 66.6F, 'F'};
struct Student * pst = &st;
pst->age = 88;
st.score = 66.7f;
printf("%d %f\n", st.age, pst->score);
return 0;
}
#include <stdio.h>
str