#include"cj_header.h"
extern cjglxshcj[80];
void gxcjf()
{
int i=0;
int xuehao;
printf("请输入学号: ");
scanf("%d",&xuehao);
for(i;i<80;i++)
{
if(xshcj[i].xh==-1)箭头指向了这一行,其他行也有
{
printf("查找完毕或没有有效数据!\n");
return;
}
if(xshcj[i].xh==xuehao)
{
printf("学号:%d",xshcj[i].xh);
printf(";姓名:");
printf("%s",xshcj[i].name);
printf(";数学:%d",xshcj[i].grade[0]);
printf(";英语:%d",xshcj[i].grade[1]);
printf(";编程:");
printf("%d",xshcj[i].grade[2]);
printf(";操作:%d",xshcj[i].grade[3]);
printf(";工具:");
printf("%d",xshcj[i].grade[4]);
printf("\n");
printf("\n更新\n\n 数学:");
scanf("%d",&xshcj[i].grade[0]);
printf("\n\n英语:");
scanf("%d",&xshcj[i].grade[1]);
printf("\n\n编程:");
scanf("%d",&xshcj[i].grade[2]);
printf("\n\n操作: ");
scanf("%d",&xshcj[i].grade[3]);
printf("\n\n工具:");
scanf("%d",&xshcj[i].grade[4]);
}
}
}
富国沪深
相关分类