下载此文档

c语言课程设计_学生成绩管理系统.txt


文档分类:IT计算机 | 页数:约5页 举报非法文档有奖
1/ 5
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/ 5 下载此文档
文档列表 文档介绍
#include "" /*I/O函数*/
#include "" /*其它说明*/
#include "" /*字符串函数*/
#include "" /*屏幕操作函数*/
#include "" /*内存操作函数*/
#include "" /*字符操作函数*/
#include "" /*动态地址分配函数*/
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("","ab+"))==NULL)
{
printf("cannot open this file.\n");
getch();exit(0);
}
for(i=0;i<=1000;i++)
{
printf("\nPlease shuru xuehao:");
gets();
printf("Please shuru mingzi:");
gets();
printf("Please shuru yuwen score:");
gets(temp);[0]=atof(temp);
printf("Please shuru shuxue score:");
gets(temp);[1]=atof(temp);
printf("Please input yingyu score:");
gets(temp);[2]=atof(temp);
printf("Please shuru wuli score:");
gets(temp);[3]=atof(temp);
printf("Please shur huaxue score:");
gets(temp);[4]=atof(temp);
[5]=[0]+[1]+[2]+[3]+[4];
fwrite(&data,sizeof(data),1,fp);
printf("another?y/n");
ch=getch();
if(ch=='n'||ch=='N')
break;
} fclose(fp);
}
void xianshi()
{
float s;int n;
if((fp=fopen("","rb+"))==NULL)
{
printf("Cannot reading this file.\n");
exit(0);
}
for(i=0;i<=1000;i++)
{
if((fread(&info[i],sizeof(info[i]),1

c语言课程设计_学生成绩管理系统 来自淘豆网www.taodocs.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数 5
  • 收藏数 0 收藏
  • 顶次数 0
  • 上传人 janny
  • 文件大小 0 KB
  • 时间2011-06-22
最近更新