使用C语言做一个学生成绩管理系统

作者&投稿:咎婉 (若有异议请与网页底部的电邮联系)
怎样用c语言编写一个学生成绩管理系统~

我大一时写了个,贴上来给你。
/*********************************************************
*创建日期:2011-04-27
*程序名称:链表综合操作(学生成绩管理系统)
*程序作者:木芽锺
*备注信息:
**********************************************************/
#include
#include
#include
#define SN 3 //课程门数,可以自定义
typedef struct student
{
char num[10],
name[10];
float score[SN],
sum,
avg;
struct student *next;
}STU;
/**********输入链表单元内容************/
void input(STU *p)
{
int i;
printf("please input number:
");
scanf("%s",p->num);
printf("please input name:
");
scanf("%s",p->name);
printf("please input %d scores:
",SN);
p->sum=0;
for(i=0;i<SN;i++)
{
scanf("%f",&p->score[i]);
p->sum+=p->score[i];
}
p->avg=p->sum/SN;
}
/**********创建一个链表单元**********/
STU *creat_node()
{
STU *p;
p=(STU *)malloc(sizeof(STU));
if(p == NULL)
{ printf("No enough memory !");
exit(0);
}
input(p);
p->next=NULL;
return p;
}
/**********创建一个链表**********/
STU *creat_list()
{
STU *head=NULL,*tail=NULL,*p;
char str[4];
printf("List creating...
");
do
{
printf("Do you want to continue (yes/no) :");
scanf("%s",str);
if(strcmp(str,"yes")==0)
{
p=creat_node();
if(head==NULL){head=tail=p;continue;}
tail->next=p;
tail=p;
}
if(strcmp(str,"yes")!=0&&strcmp(str,"no")!=0)
{
printf("You must input 'yes' or 'no'.
");
//getchar();
continue;
}

if(strcmp(str,"no")==0)break;
//getchar();
}while(1);
printf("List create end...

");
return head;
}
/************输出一个链表单元**********/
void print_a_node(STU *fin)
{
int i;
printf("%s;%s;%0.2f;%0.2f",fin->num,fin->name,fin->avg,fin->sum);
for(i=0;i<SN;i++)
printf("%0.2f",fin->score[i]);
putchar(10);
}
/************输出一个链表头部**********/
void print_a_head()
{
int i;
printf("numbernameavgsum");
for(i=0;i<SN;i++)
printf("score%d",i+1);
putchar(10);
}
/************输出操作菜单**********/
void print_menu_list()
{
printf("======the operation menu list======
");
printf("[0]-->exit
[1]-->creat a list
[2]-->print the list
[3]-->insert a list node
[4]-->select by number
[5]-->select by name
");
printf("[6]-->delete a list node
[7]-->update a list node
[8]-->order the list by score
[9]-->print the operation menu list
");
printf("======the operation menu list======
");
putchar(10);
}
/************输出链表**********/
int print_list(STU *stu)
{
STU *p=stu;
if(stu==NULL)
{
printf("no records!!!
");
return (0);
}
print_a_head();
while(p!=NULL)
{
print_a_node(p);
p=p->next;
}
putchar(10);
return (0);
}
/************插入链表单元************/
void insert(STU *stu)
{
STU *tail=stu,*p;
printf("now insert a list node...
");
while(tail->next!=NULL)
{
tail=tail->next;
}
p=creat_node();
tail->next=p;
printf("Insert end...

");
}
/**********查找链表num**********/
STU *find_num(STU *stu, char num[])
{
STU *p=stu,*pr=NULL;
while(p!=NULL)
{
if(strcmp(p->num,num)==0){pr=p;break;}
p=p->next;
}
return pr;
}
/**********查找链表name**********/
STU *find_name(STU *stu, char name[])
{
STU *p=stu,*pr=NULL;
while(p!=NULL)
{
if(strcmp(p->name,name)==0){pr=p;break;}
p=p->next;
}
return pr;
}
/************删除链表单元************/
STU * delet(STU *stu, char name[])
{
STU *p=stu,*front=stu;
if((p=find_name(stu,name))!=NULL)
{
printf("the delete record:
");
print_a_head();
print_a_node(p);
}
else
{
printf("can not find the student!
");
return stu;
}
p=stu;
while(p!=NULL&&strcmp(p->name,name)!=0)
{
front=p;
p=p->next;
}
if(p==stu&&front==stu)stu=NULL;
else front->next=p->next;
if(p!=NULL)p->next=NULL;
free(p);
printf("delete end...

");
return stu;
}
/**********更新链表单元**********/
void update(STU *stu, char name[])
{
STU *fin;
if((fin=find_name(stu,name))!=NULL)
{
printf("before update:
");
print_a_head();
print_a_node(fin);
}
else
{
printf("can not find the student!
");
exit(0);
}
printf("please input the new records now...
");
input(fin);
printf("update end...

");
}
/**********链表单元排序**********/
void order(STU *stu)
{
STU *pi,*pj,*max,temp;
int i;
if(stu!=NULL&&stu->next!=NULL)
{
for(pi=stu;pi!=NULL;pi=pi->next)
{
max=pi;
for(pj=pi->next;pj!=NULL;pj=pj->next)
{
if(max->sumsum)
max=pj;
}
if(max!=pi)
{
strcpy(temp.num,max->num);
strcpy(max->num,pi->num);
strcpy(pi->num,temp.num);
strcpy(temp.name,max->name);
strcpy(max->name,pi->name);
strcpy(pi->name,temp.name);
temp.sum=pi->sum;
pi->sum=max->sum;
max->sum=temp.sum;
temp.avg=max->avg;
max->avg=pi->avg;
pi->avg=temp.avg;
for(i=0;i<SN;i++)
{
temp.score[i]=max->score[i];
max->score[i]=pi->score[i];
pi->score[i]=temp.score[i];
}
}
}
printf("order end...

");
}
else
printf("do not need to order...

");
}
/************释放链表**********/
void fre(STU *stu)
{
STU *p=stu,*pf;
if(stu==NULL)
{
printf("the list is NULL!
");
exit(0);
}
while(p!=NULL)
{
pf=p->next;
free(p);
p=pf;
}
if(stu==NULL)
printf("free the list.
");
}
STU * menu(STU *stu,int cas)
{
STU *fin=NULL;
char a[10];
switch(cas)
{
//创建链表
case 1:
if(stu!=NULL)fre(stu);
stu=creat_list();
break;
//输出链表
case 2:
if(stu==NULL){printf("can not do this operation!
");putchar(10);break;}
print_list(stu);
break;
//插入链表单元
case 3:
if(stu==NULL){printf("can not do this operation!
");putchar(10);break;}
insert(stu);
break;
//查找输出number
case 4:
if(stu==NULL){printf("can not do this operation!
");putchar(10);break;}
printf("please input the 'number' you want to find:
");
scanf("%s",a);
if((fin=find_num(stu,a))!=NULL)
{
print_a_head();
print_a_node(fin);
}
else printf("no found!
");
break;

//查找输出name
case 5:
if(stu==NULL){printf("can not do this operation!
");putchar(10);break;}
printf("please input the 'name' you want to find:
");
scanf("%s",a);
if((fin=find_name(stu,a))!=NULL)
{
print_a_head();
print_a_node(fin);
putchar(10);
}
else printf("no found!
");
break;
//删除链表单元
case 6:
if(stu==NULL){printf("can not do this operation!
");putchar(10);break;}
printf("please input the 'name' you want to delete:
");
scanf("%s",a);
stu=delet(stu,a);
break;
//更新链表单元
case 7:
if(stu==NULL){printf("can not do this operation!
");putchar(10);break;}
printf("please input the 'name' you want to update:
");
scanf("%s",a);
update(stu,a);
break;
//链表单元排序
case 8:
if(stu==NULL){printf("can not do this operation!
");putchar(10);break;}
printf("order by score
");
order(stu);
break;
//打印链表操作菜单
case 9:
print_menu_list();
break;
default:
printf("can not do this operation!
");putchar(10);break;
}
return stu;
}
void main()
{
STU *stu=NULL;
int cas;
//打印操作提示
print_menu_list();
//用户操作
do
{
printf("press 0~9 to choose operation!
");
scanf("%d",&cas);
if(cas9){printf("you must press 0 to 9 !
");continue;}
if(cas!=0)stu=menu(stu,cas);
if(cas==0){printf("operation end !

");fre(stu);}
}while(cas!=0);
//释放链表
fre(stu);

}

//用字符界面实现,比如按数字1,可以录入学生所有信息;//按数字2,显示所有学生成绩;//按数字3,进入查询,按学号或姓名查询该学生是否存在,如果存在显示他的所有信息,///否则给出不存在提示。#include struct student{ char num[6]; /*学号*/ char name[10]; char subject[20]; /*科目*/ float grade;}stu[10];void menu(){ printf("====================================
"); printf("| 学生成绩管理系统 |
"); printf("| 1 输入学生成绩 |
"); printf("| 2 输出学生成绩 |
"); printf("| 3 查询学生成绩 |
"); printf("| 0 退出管理系统 |
"); printf("====================================
");}void input(){ for(int i=0;i<10;i++) scanf("%s%s%s%f",stu[i].num,stu[i].name,stu[i].subject,&stu[i].grade);}void show(){ printf("学号姓名科目成绩
"); for(int i=0;i<10;i++) printf("%s%s%s%f
",stu[i].num,stu[i].name,stu[i].subject,stu[i].grade);}void serach(){ char obj[10]; printf("输入要查询的学号"); scanf("%s",obj); for(int i=0;i<10;i++) { if(strcmp(obj,stu[i].num)) { printf("学号姓名科目成绩
"); printf("%s%s%s%f
",stu[i].num,stu[i].name,stu[i].subject,stu[i].grade); } } }int main(){ int selection; while(true) { clrscr(); menu(); printf("请选择0--3: "); scanf("%d",&selection); switch(selection) { case 1: input();break; case 2: show();break; case 3: search();break; case 0: exit(0);break; default: printf("错误的输入,请重新输入:"); } } return 0;}

#include <string>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <memory.h>
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
using namespace std;

struct Employee
{//声明职工的结构作为链表节点。
//-----数据域-----
string m_Code;
string m_Name;
unsigned short int m_Year;
string m_Sex;
string m_Post;
string m_Department;
unsigned int m_Wage;
//链表节点的指针域---
struct Employee* Next;
};

//-----个人习惯:取别名-------
typedef struct Employee Node;
typedef Node* Link;

//-------函数声明-------------
Link Create(Link Head);
void Release(Link Head);
Link Add(Link Head);
bool Search(Link Head);
Link Search_Unique(Link Head);
void Display_List(Link Head);
void Display_Node(Link pNode);
Link Modify(Link Head);
Link Del(Link Head);
void Save_ByFile(Link Head,fstream& ofile);
Link Sort(Link Head);
//-------函数实现--------------------------
Link Create(Link Head)
{//创建一个带头节点的空链表。
Head=(Link)new Node;
if(!Head)
{
cout<<"分配内存失败!"<<endl;
return NULL;
}
Head->m_Code="";
Head->m_Name="";
Head->m_Year=0;
Head->m_Sex="";
Head->m_Post="";
Head->m_Department="";
Head->m_Wage=0;
Head->Next=NULL;

return Head;
}

void Release(Link Head)
{//释放链表。
Link ptr;//声明一个操作用的指针。
while(Head!=NULL)
{
ptr=Head;
Head=Head->Next;
delete ptr;//释放节点资源。
}
}

Link Add(Link Head)
{//前插法添加数据。
Link pNew;// 声明一个新节点。
char again;
string code,name,sex,post,department;
unsigned short int year;
unsigned int wage;
do
{
pNew=(Link)new Node;
//数据域。
cout<<"请输入职工代码:";
cin>>code;
cout<<endl<<"请输入职工姓名:";
cin>>name;
cout<<endl<<"请输入职工出生年份:";
cin>>year;
while(cin.fail())
{
cout<<"请输入正确的年份格式。"<<endl;
cin.clear();
fflush(stdin);
cin>>year;
}
cout<<endl<<"请输入职工性别:";
cin>>sex;
cout<<endl<<"请输入职工职称:";
cin>>post;
cout<<endl<<"请输入职工部门:";
cin>>department;
cout<<endl<<"请输入职工工资:";
cin>>wage;
while(cin.fail())
{
cout<<"请输入正确的工资数据。"<<endl;
cin.clear();
fflush(stdin);
cin>>wage;
}
cout<<endl;
pNew->m_Code=code;
pNew->m_Name=name;
pNew->m_Year=year;
pNew->m_Sex=sex;
pNew->m_Post=post;
pNew->m_Department=department;
pNew->m_Wage=wage;
//指针域。
pNew->Next=Head->Next;
Head->Next=pNew;
cout<<"数据添加成功!是否继续添加?(Y/N)"<<endl;
cin>>again;
}while(again=='Y'||again=='y');
return Head;
}

bool Search(Link Head)
{//查询同时满足“姓名”和“部门”的职工信息。
Link ptr;
string department;
string name;
ptr=Head->Next;
cout<<"请输入部门:";
cin>>department;
cout<<endl<<"请输入姓名:";
cin>>name;
cout<<endl<<"----------------查询结果------------------"<<endl;
while(ptr)
{
if((ptr->m_Name==name)&&(ptr->m_Department==department))
{
Display_Node(ptr);//打印满足条件的节点。
return true;
}
ptr=ptr->Next;//查询下一节点。
}
cout<<"无此职工的信息。"<<endl;
return false;
}

Link Search_Unique_Front(Link Head)
{//查询满足“职工代码“的职工信息(职工代码必需唯一)。
Link ptr;
string code;
ptr=Head;
cout<<"请输入职工代码:";
cin>>code;
cout<<endl<<"----------------查询结果------------------"<<endl;
while(ptr->Next)
{
if(ptr->Next->m_Code==code)
//Display_Node(ptr);//打印满足条件的节点。
return ptr;//注意,是返回的查询到的节点的直接前趋节点。
ptr->Next=ptr->Next->Next;//查询下一节点。
}
return ptr;
}

void Display_List(Link Head)
{
Link ptr;
ptr=Head->Next;
cout<<"==================所有职工信息=================="<<endl;
while(ptr)
{
Display_Node(ptr);
ptr=ptr->Next;
}
}

void Display_Node(Link pNode)
{//在标准输出设备上输出。
cout<<setw(10)<<left<<pNode->m_Code
<<setw(10)<<left<<pNode->m_Name
<<setw(10)<<left<<pNode->m_Year
<<setw(10)<<left<<pNode->m_Sex
<<setw(10)<<left<<pNode->m_Post
<<setw(10)<<left<<pNode->m_Department
<<setw(10)<<left<<pNode->m_Wage<<endl;//setw(10)表示占10个字符位置。
}

Link Modify(Link Head)
{// 修改单一个节点。
Link ptr;
ptr=Search_Unique_Front(Head);
string code,name,sex,post,department;
unsigned short int year;
unsigned int wage;
if(ptr->Next)
{
cout<<"-------你现在可以修改此职工的信息了-------"<<endl;
//数据域。
cout<<"请输入职工代码:";
cin>>code;
cout<<endl<<"请输入职工姓名:";
cin>>name;
cout<<endl<<"请输入职工出生年份:";
cin>>year;
while(cin.fail())
{
cout<<"请输入正确的年份格式。"<<endl;
cin.clear();
fflush(stdin);
cin>>year;
}
cout<<endl<<"请输入职工性别:";
cin>>sex;
cout<<endl<<"请输入职工职称:";
cin>>post;
cout<<endl<<"请输入职工部门:";
cin>>department;
cout<<endl<<"请输入职工工资:";
cin>>wage;
while(cin.fail())
{
cout<<"请输入正确的工资数据。"<<endl;
cin.clear();
fflush(stdin);
cin>>wage;
}
cout<<endl;
ptr->Next->m_Code=code;//因ptr是前趋节点,所以要用ptr->Next;
ptr->Next->m_Name=name;
ptr->Next->m_Year=year;
ptr->Next->m_Sex=sex;
ptr->Next->m_Post=post;
ptr->Next->m_Department=department;
ptr->Next->m_Wage=wage;
}
cout<<"没找到此职工的记录,无法修改。"<<endl;
return Head;
}

Link Del(Link Head)
{
Link ptr;
Link ptr_front;
ptr_front=Search_Unique_Front(Head);
ptr=ptr_front->Next;
if(ptr)
{
ptr_front->Next=ptr->Next;
delete ptr;//删除此节点。
}
cout<<"没找到此职工的记录,无法删除。"<<endl;
return Head;
}

void Save_ByFile(Link Head,fstream& ofile)
{
Link pNode;
pNode=Head->Next;
ofile.clear();//清除文件结束状态。
while(pNode)
{
ofile<<setw(10)<<left<<pNode->m_Code
<<setw(10)<<left<<pNode->m_Name
<<setw(10)<<left<<pNode->m_Year
<<setw(10)<<left<<pNode->m_Sex
<<setw(10)<<left<<pNode->m_Post
<<setw(10)<<left<<pNode->m_Department
<<setw(10)<<left<<pNode->m_Wage<<endl;//setw(10)表示占10个字符位置。
pNode=pNode->Next;
}
cout<<"数据文件保存成功!"<<endl;
}

Link Sort(Link Head)
{//我创建的是带头节点的链表。用直接插入法。
if((Head->Next==NULL)||(Head->Next->Next==NULL))//此步条件判断非常有价值。
{
cout<<"数据节点数少于2个,不用排序!"<<endl;
return Head;
}
//-----------第二步;
Link ptr;
Link ptr_F;
Link ptr_N;
ptr=Head->Next->Next;
ptr_F=Head;
Head->Next->Next=NULL;//到此,分成了两个链表。
//第三步。
while(ptr)
{
ptr_N=ptr->Next;
ptr_F=Head;//ptr_F的归位。
while(ptr_F->Next)
{
if(ptr->m_Wage>ptr_F->Next->m_Wage)
{
ptr->Next=ptr_F->Next;
ptr_F->Next=ptr;
break;

}//if
else
{
ptr_F=ptr_F->Next;
}
}//while(ptr_F->Next)
if(ptr_F->Next==NULL)
{
ptr->Next=ptr_F->Next;
ptr_F->Next=ptr;//表示插到有序链表的最后面了。
}

ptr=ptr_N;//归位,准备下一次排序。

}//while(ptr)
cout<<"从高到低,排序成功!"<<endl;
return Head;
}

int main()
{
Link Head=0;
Head=Create(Head);
fstream iofile;
iofile.open("d:\\iofile.txt",ios_base::in|ios_base::out|ios_base::app);//文件以三种方式打开。
if(!iofile)
{
cout<<"打开文件失败!"<<endl;
return -1;
}
int menu;
while(1)
{
cout<<"*****************************************************"<<endl;
cout<<"*====================菜单选顶=======================*"<<endl;
cout<<"*===================================================*"<<endl;
cout<<"* 1.注册职工 2.修改信息 3.删除信息 4.信息查询 *"<<endl;
cout<<"* 5.保存文件 6.工资排行 7.信息显示 0.退出系统 *"<<endl;
cout<<"*****************************************************"<<endl;
cout<<endl<<"请选择相应操作菜单项:";
cin>>menu;
while(cin.fail())
{
cout<<"请选择正确的菜单选项。"<<endl;
cin.clear();
fflush(stdin);
cin>>menu;
}
switch(menu)
{
case 0:
cout<<"成功退出系统!"<<endl;
return 0;
case 1:
Head=Add(Head);
break;
case 2:
Head=Modify(Head);
break;
case 3:
Head=Del(Head);
break;
case 4:
Search(Head);
break;
case 5:
Save_ByFile(Head,iofile);
break;
case 6:
Sort(Head);
break;
case 7:
Display_List(Head);
break;
default:
cout<<"请选择正确的菜单项进行操作。多谢合作!"<<endl;

}
}
Release(Head);
iofile.close();
return 0;
}

下面的都不错,满足你的要求且带详细注解:
http://blog.sina.com.cn/s/blog_4b1658ae01009wkx.html
http://zhidao.baidu.com/question/42730136.html

100分无用。

给我100元,我一定给你写个满意的。

连这么简单的东西都赖的写的人,我的要求很实在,100元已经是非常低的价格了。

sss


使用C语言做一个学生成绩管理系统
 用C语言编写一个程序实现学生成绩管理,每个学生包括3门课的成绩,从键盘输入学生信息,包括学号、姓名、三门课成绩,计算出学生的平均成绩,按照学生平均成绩由大到小排序 插入功能:在排序后的学生成绩表中插入一个学生的信息,要求插入后仍然保持成绩表有序 删除功能:要求输入指定的学号,从学生信息表中删除...

在电脑上怎么编写c语言输入我是一个学生?
void main() { char s[80];printf("请输入一句话:"); scanf("%s",s);printf("你输入的是:%s\\n",s);} 程序运行后提示“请输入一句话:”你可以在冒号后面输入:我是一个学生 输入完成后回车,程序在下一行输出“你输入的是:xxxx”并换行,其中xxxx就是刚才你输入的内容,然后程序运行结...

用c语言链表编写一个学生信息系统程序,要求输出学生的学号,姓名,性别...
memset(str,0,SERIALLEN);printf("建立学生信息:\\n");head=(stuinfo *)calloc(1,sizeof(stuinfo));if(!head){ perror("申请空间失败,没有足够内存。");return -1;} ptr=head;while(cycle){ puts("输入学生学号(0退出):");scanf("%s",str);if(strcmp(str,"0")) \/\/如果学号为0,...

如何用C语言编写一个学生的成绩表?
printf("2.Print the student table\\n");printf("3.Exit\\n");printf("***\\n");printf("\\n\\n\\n Please input the number related to yourwanted item:");scanf("%c",&num);\/*添加学生信息*\/ if(num=='1'){ clrscr();printf("\\n***Add New Student***\\n");p=head;while(p...

用c语言编写一个小学生算数练习程序
{ int a,i,n,o,x,y,z;printf("请输入题目数:");scanf("%d",&n);while(n--){ srand((unsigned)time(NULL));x=rand()%10+1;y=rand()%10+1;o=rand()%4;switch(o){ case 0:printf("%d + %d = ",x,y);a=x+y;break;case 1:printf("%d - %d = ",x,y);a=x-y...

用C语言编写一个学生管理系统。
用C语言编写一个学生管理系统。实验要求1、总体要求:系统功能齐全,运行结果正确,用户界面友好,使用简单方便。2、系统数据要求:学生信息如下:学号、姓名、年龄、所在系、3门课程名称及成绩、总分、平均分。3、... 实验要求1、总体要求:系统功能齐全,运行结果正确,用户界面友好,使用简单方便。 2、系统数据要求:学生...

用C语言编写一个学生管理系统。
一℃himl 0:} void help(){ printf("\\ nO.欢迎使用系统帮助,\\ n);printf("\\ n1.进入系统后,先制新学生信息,再查询:\\n’);printf(" \\n2.按照菜单提示键入数字代号\\ n printf("\\ n3. 增加学生信息后,切记保存按;\\.n”printf("\\n4. 谢谢您的仗用!\\ n");} void n:adlilcO r...

怎么用C语言编一个学生成绩记录簿?
return -1;} void save2File(SeqList L){ fp = fopen(filePath, "w");for (int i = 0; i < L.length; i++)fprintf(fp, "%s\\t%s\\t%d\\n", L.arr[i].id, L.arr[i].name, L.arr[i].score);} void showMenu(SeqList L);void addInfo(SeqList L){ StudentInfo info;in...

C语言编一个小学生算术题程序,求大神!!
void menu() { char sl;int i,an,a,b,n = 10;do { printf("\\t***\\n");printf("\\t* 加法(A) 减法(S) 乘法(M) 除法(D) 退出(E) *\\n");printf("\\t***\\n");printf("\\n请选择 : ");fflush(stdin);scanf("%c",&sl);...

编程如何用C语言编写一个学生成绩管理系统程序
\/*函数add,功能:追加学生资料,并且将所有学生资料按学号排序*\/{score *p0,*p1,*p2,*p3,*max; int i,j;float fen; char t[10];p3=stu=(score *)malloc(LEN);\/*开辟一个新单元*\/ printf("\\n输入要增加的学生的资料!");repeat4: printf("请输入学生学号(学号应大于0):");scanf("%d",&stu->...

科尔沁区19748889427: C语言建立一个“学生管理成绩系统” -
禾居除翳: #include<stdio.h>#include<malloc.h>#include<string.h>#include<conio.h>#include<windows.h> struct student//初始化结构体 包括学生学号和成绩 { char num[20]; float chengji; struct student*next; }; float p; struct student* luru()//建立链表 录入学生...

科尔沁区19748889427: 编程如何用C语言编写一个学生成绩管理系统程序 -
禾居除翳: 我们才做了这个作业... #include <malloc.h> #include <stdio.h> #include <stdlib.h> #define LEN sizeof(struct scorenode) #define DEBUG #include <string.h> struct scorenode { int number;/*学号*/ char name[8];/*姓名*/ float cj1;/*成绩1*/ ...

科尔沁区19748889427: 如何用C语言编一个学生成绩管理系统 -
禾居除翳: #include "stdio.h"#include "stdlib.h"#include "string.h"#define NULL 0 int shoudsave=0; struct student { char num[10]; char name[20]; char sex[4]; int cgrade; int mgrade; int egrade; int totle; int ave; char neartime[10]; }; typedef struct node { ...

科尔沁区19748889427: 求怎么用C语言做一个学生成绩管理系统 -
禾居除翳: 去年写的,你稍微改下加个成绩就行#include#include#include FILE *fp; struct student{ char name[10]; char number[12]; char age[3]; struct student *next; }; struct student *creat(); //手动创建链表 struct student *build_list(); //从文件读取信息...

科尔沁区19748889427: c语言设计学生成绩管理系统 -
禾居除翳: #include<iostream> #include<cstdio> #include<cmath> #include<vector> #include<list> #include<cstring> #include<map> #include<set> #include<algorithm> #include<queue> using namespace std; int n; struct birth {int year,month,day; };struct ...

科尔沁区19748889427: 怎么用c语言编写一个学生成绩管理系统啊?急…… -
禾居除翳: C语言课程设计报告-------学生成绩简单管理程序 一、系统菜单的主要功能 (1)输入若干条记录 (2)显示所有记录 (3)按学号排序 (4)插入一条记录 (5)按姓名查找,删除一条记录 (6)查找并显示一条记录 (7)输出统计信息 (新增)...

科尔沁区19748889427: 用C语言完成学生成绩管理系统 -
禾居除翳: #include<stdio.h> #include<conio.h> #include <stdlib.h> #include<string.h> #define MAX 100void input(); void sort(); void show(); void del(); void quit(); int i=0; int k,j; char ch;struct student {int no;char name[20];float score1;float score2;float ...

科尔沁区19748889427: 学生成绩管理系统 用C语言写
禾居除翳: #include #include #define LEN sizeof(struct stu) //#define NULL 0 struct score { char work1[64]; int score1; char work2[64]; int score2; char work3[64]; int score3; }; struct stu { char name[100]; int age; int classes; char address[500]; char telephone[14...

科尔沁区19748889427: 怎样用C语言做学生成绩管理系统 -
禾居除翳: 先建立一个名为score的txt.#include<stdio.h>#include<string.h>#include<stdlib.h>struct stu{ int num; int wuli; int huaxue; int math;};FILE *fp;//添加学生信息,可以排除与已存的冲突;void add(){ int a,b,c,d,n=0; struct stu student; fp=fopen("score....

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 星空见康网