# include
# include
# include
//using namespace std;
void menu(struct student *parr,int len);
void sore(struct student *parr,int len);
void output(struct student *parr,int *len);
void input(struct student *parr,int len);
void write(struct student *parr,int len);
void read(struct student *parr,int len);
void find(struct student *parr,int len);
void logout(struct student *parr,int len);
void exit(struct student *parr,int len);
void modify(struct student *parr,int len);
void insert(struct student*parr,int *len);
struct student
{
long int number;//
学号
float score;//
成绩
char name[10];//
姓名
};
const now=100;
struct student parr[now];
int main(void)
{
int len = 0;
char ch = '\0';
while(1)
{
system("cls");
menu(parr, len);
printf("
请选择一个功能
\n");
scanf(" %c",&ch);
switch(ch)
{
case '1' :
printf("
请输入需要存入的学生人数:
");
scanf("%d",&len);
//
parr = (struct student *)malloc((sizeof(struct student) * len));
if(len>0)
{
input(parr,len);
}
break;
case '2' :
output(parr,&len);
break;