上传者: ahhqlrg 
                                    |
                                    上传时间: 2020-01-03 11:16:24
                                    |
                                    文件大小: 12KB
                                    |
                                    文件类型: txt
                                
                            
                                
                            
                                #include
#include
#include
#define Maxsize 100
typedef struct
{
	int jchk;
	int zhyk;
	int xxk;
	int shyk;
	int rwk;
}Lesson;
typedef struct
{
	char name[10];
	char sex[4];
	char clas[10];
	char mayor[20];
	char number[20];
	Lesson kch;
}Linelist;
typedef struct
{
	Linelist data[Maxsize];
	int length;
}Sqlist;
FILE *fp;
/*保存函数*/
void Save(Sqlist &L,int n)
{
	int i=0;
	system("cls");
    
    
	if((fp=fopen("Sqlist.txt","w"))==NULL)
	{
		printf("文件打不开!\n");
		exit(1);
	}
	while(i=50  && L.data[i].kch.xxk>=24
			&&  L.data[i].kch.shyk>=20   &&  L.data[i].kch.rwk>=8)
		{
		printf("\n姓名		性别		班级		专业		学号\n");
		printf("%s %15s %15s %15s %15s",L.data[i].name,L.data[i].sex,
				L.data[i].clas,L.data[i].mayor,L.data[i].number);
		printf("\n");
		printf("基础课		专业课		选修课		实验课		人文课(学分)\n");
		printf("%d %15d %15d %15d %15d\n",
				L.data[i].kch.jchk,L.data[i].kch.zhyk,L.data[i].kch.xxk,
				L.data[i].kch.shyk,L.data[i].kch.rwk);
		found=1;
		}
		if(found==0)
			printf("\n\n\n\n\n\n\t\t\t所有学生均不达到标准,不能毕业!\n");
		system("pause");
}
/*统计未毕业学生*/
void Diseducate(Sqlist L,int n)
{
	int i,found=0;
	system("cls");
	for(i=0;i