- #include<stdio.h>
- struct student{
- int num;
- char name[20];
- float score;
- };
- int main(void){
- struct student s1={20,"bowen",89.0},*sp;
- //struct stduent *sp;
- sp=&s1;
- printf("%d %s %f",sp->num,sp->name,sp->score);
- }
来源: http://www.bubuko.com/infodetail-2580903.html