//学生管理系统
#include <stdio.h>
#include <malloc.h>
//定义结构体
struct Student
{
int age;
float score;
char name[100];
};
//主函数
void main (void)
{
int len;
int i;
struct Student *pArr = NULL;
//动态构造一维数组
printf("请输入学生的个数:\n");
printf("len = ");
scanf("%d", &len);
pArr = (struct Student *)malloc(len * sizeof(struct Student));
//输入
for (i=0;i<len;++i);
{
printf("请输入第%d个学生的信息:\n", i+1);
printf("age = ");
scanf("%d", &pArr[i].age);
printf("\n");
printf("score = ");
scanf("%f", &pArr[i].score);
printf("\n");
printf("name = ");
scanf("%s", pArr[i].name);//name 作为数组名不需要&
printf("\n");
}
//输出
for (i=0;i<len;++i);
{
printf("第%d个学生的信息是:\n", i&#