新手,刚学到结构,编的简单程序却无法运行,求老师帮忙
# include <stdio.h>struct Student
{
int age;
char name[100];
double L;
};
int mian(void)
{
struct Student xs = {22, "小明", 1.68};
struct Student * pxs = &xs;
printf("%d %s %f", xs.age, xs.name, xs.L);
printf("%d %s %f", pxs->age, pxs->name, pxs->L);
return 0;
}