求~~!在TC下的程序源代码!~《学生成绩查询系统》

[复制链接]
查看11 | 回复0 | 2008-1-16 13:01:21 | 显示全部楼层 |阅读模式
#include "stdio.h"
/*I/O函数*/#include "stdlib.h" /*其它说明*/#include "string.h" /*字符串函数*/#include "conio.h" /*屏幕操作函数*/#include "mem.h" /*内存操作函数*/#include "ctype.h" /*字符操作函数*/#include "alloc.h" /*动态地址分配函数*/struct score{int mingci;char xuehao[8];char mingzi[20];float score[6];}data,info[1000];int i,j,k=0;char temp[20],ch;FILE *fp,*fp1;void shuru(){if((fp=fopen("s_score.txt","ab+"))==NULL){printf("cannot open this file.\n");getch();exit(0);}for(i=0;ixiugai
* \n");printf("*
3>shanchu
4>chazhao
* \n");printf("*
5>xianshi
6>exit
* \n");printf("*
* \n");printf("* --------------------------------------------------------- *\n");
printf("
Please input which you want(1-6):");
ch=getch();
switch(ch)
{
case '1':shuru();break;
case '2':xiugai(); break;
case '3':shanchu();break;
case '4':chazhao(); break;
case '5':xianshi(); break;
case '6':exit(0);
default: continue;
}}}你自己修改,在WIN-TC下通过了编译
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行