#include <stdio.h>
#include <stdlib.h> struct student{
int num;
char str[];
double dec;
}; void scan(struct student *stu){
// scanf("%d%s%lf", &stu->num, stu->str, &stu->dec);
scanf("%d%s%lf", &(*stu).num, (*stu).str, &(*stu).dec);//.运算符优先级大于*
} void print(struct student stu){
printf("%d %s %lf\n", stu.num, stu.str, stu.dec);
} int main(){ struct student stu; scan(&stu);
print(stu); return ;
}
/*
20 字符串 20.02
*/