博文
学生系统编程(2006-07-22 15:46:00)
摘要:
/*本学生成绩管理系统适合在win-TC 下运行*/
#include "stdio.h" /*I/O函数*/
#include "stdlib.h" /*其它说明*/
#include "string.h" /*字符串函数*/
#include "conio.h" /*屏幕操作函数*/
#include "mem.h" /*内存操作函数*/
#include "ctype.h" /*字符操作函数*/
#include "alloc.h" /*动态地址分配函数*/
struct student /*使用结构体定义学生系统成员*/
{
long num; /*输入学生的学号,但不能多于8个数字且开头不能为0*/
char name[20]; /*输入学生的名字,但不能多于20个字符并且姓名之间不能有空格*/
int s[5]; /*输入学生的5科成绩,用数组表示*/
int as; /*算学生的5科成绩总和*/
int qs; /*算学生的5科加权成绩总和*/
}stu[100];
struct student t; /*将t定义为结构题*/
main()
{char ch;
int i,j,N;
int yw,sx,yy,hx,wl;/*这是语文 数学 英语 化学 物理各科占有的权重*/
printf("\nInput How many student:");
scanf("%d",&N); /*输入有多少个学生*/
printf("\nInput quanzhong(yuw......
