学生信息管理系统C语言代码
FILE*fs;
fs=fopen("studentdata.dat","wb");
if(fs==NULL)
{
printf("不能打开文件\n");
return;
}
count=fwrite(stu,sizeof(struct student),current,fs);
fclose(fs);
if(count!=current)
{
printf("保存失败\n");
return;
}
printf("保存成功!\n");
return;
}
void load()
{
FILE *fs;
int count=0;
int succ=0;
fs=fopen("studentdata.dat","rb");
if(fs==NULL)
{
printf("不能打开文件!\n");
return;
}
succ=fseek(fs,0,2);
if(succ!=0)
{
printf("文件操作失败!\n");
return;
}
count=ftell(fs);
fseek(fs,0,0);
current=count/sizeof(struct student);
stu=(struct student *)malloc(total*sizeof(struct student));
count=fread(stu,sizeof(struct student),current,fs);
fclose(fs);
if(count!=current)
{
学生信息管理系统c语言版源代码_IT/计算机_专业资料。自己刚学习c语言时,老师让编写的一个学生信息管理系统,仅供参考!违版必究! ---MR_Computer#include <stdio....
学生信息管理系统C语言源代码_理学_高等教育_教育专区 暂无评价0人阅读0次下载举报文档 学生信息管理系统C语言源代码_理学_高等教育_教育专区。学生信息管理系统...
学生信息管理系统C代码 17页 免费 学生信息管理系统C语言源... 6页 1下载券...用C语言设计学生信息管理系...
//系统首页 } /***/ void GotoXY(int x, int y)//坐标定位函数 { COORD c; c.X = x - 1; c.Y = y - 1; SetConsoleCursorPosition(GetStdHandle...
学生信息管理系统C代码_IT/计算机_专业资料。学生信息管理系统C代码#...[15]; /*姓名*/ int cgrade; /*C 语言成绩*/ int mgrade; /*数学成绩*...
学生信息管理系统c代码_金融/投资_经管营销_专业资料。今日推荐 180...学生信息管理系统C语言源... 6页 1下载券 学生信息管理系统C++代码... 暂无...
学生信息管理系统c语言程序设计报告(完美)_实习总结_总结/汇报_实用文档。学生信息......5 五 实训源程序代码和调试过程 ...7 六 实训总结 ......
学生成绩管理系统代码(c语言编写)_工学_高等教育_教育专区。c语言编写的学生成绩...("=>信息导入成功!"); while(m==0) { menu(); scanf("%d",&n); ...
{ char c; while(1) //死循环 { printf("\tInput selection:\n\t"); //显示提示信息 printf("1: Load Data ;\n\t"); printf("2: Insert Record ...
热门文档