用C语言写学生成绩管理系统基本功能:1、 输入一个班级的学生基本信息(包括学号,姓名,性别,5门课程成绩

作者&投稿:于茗 (若有异议请与网页底部的电邮联系)
课程题目 设计实现一个简易的大学生成绩管理系统。 设计要求: (1) 记录学生的基本信息,如姓名、学号、专~

这种管理系统,网上有很多开源的系统,下载一个学习研究。

1、#include #include using namespace std;#define
2、MAX 100class Student{private:string num;string name;double subject[3];
3、double total;public:void input(Student s[], int);void sort(Student s[], int);void print(Student s[], int);}stu[MAX];void Student::input(Student s[], int n){for (int i = 0; i < n; i++){cout << "输入第" << i + 1 << "个学生的学号:";
4、cin >> s[i].num;cout > s[i].name;s[i].total = 0;for (int j = 0; j > s[i].subject[j];s[i].total += s[i].subject[j];}cout << endl;}void Student::sort(Student s[], int n){for (int i = 0; i < n-1; i++){for (int j = i + 1; j < n; j++){if (s[i].total < s[j].total){Student tmp = s[i];
5、s[i] = s[j];s[j] = tmp;}void Student::print(Student s[], int n){for (int i = 0; i > num;cout << endl;Student s;s.input(stu, num);s.sort(stu, num);s.print(stu, num);return 0;}

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h>

struct stud_node
{
long int ID; //学号
int age; //年龄
long int dormnumber,phonenumber; //宿舍号码,电话号码
char name[15]; //姓名
char sex; //性别
struct student*next;
};

struct stud_node*Create_Stu_Doc();//新建链表
int main(void){
system("color 3E");
FILE *fp=NULL;//定义文件指针
fp=fopen("stud.txt","wb");
if(fp==NULL)
{
printf("File open error \n");
exit (0);
}
struct stud_node*head,*p;
int choice,age;
long int ID,dormnumber,phonenumber;
char name[15],sex;
int size=sizeof(struct stud_node);

printf("+---------------------------+\n");
printf("| 欢迎使用教务信息管理系统 |\n");
printf("+---------------------------+\n");

printf("\n\t\t-----------------------------------------------------\n");
printf("\t\t+ 主菜单 +\n");
printf("\t\t-----------------------------------------------------\n");
printf("\t\t+ [1]--录入学生资料 +\n");
printf("\t\t+ [0]--退出系统 +\n");
printf("\t\t-----------------------------------------------------\n");
printf("\n");
printf("\t\t请输入您的选择:");

scanf("%d",&choice);
switch(choice)
{
case 0 : break;
case 1 : head=Create_Stu_Doc;break;
default:printf("\n无效选项!");
}
}

struct stud_node*Create_Stu_Doc()//新建链表
{
int y,age;
long int ID,dormnumber,phonenumber;
char name[15],sex;
int size=sizeof(struct stud_node);
struct stud_node*head,*tail,*p;
FILE *fp=NULL;//定义文件指针
fp=fopen("stud.txt","r");
head=tail=NULL;
printf("--------------------\n");
printf("请输入学生的学号:");
printf("请输入学生的姓名:");
printf("请输入学生的性别:");
printf("请输入学生的年龄:");
printf("请输入学生的宿舍号码:");
printf("请输入学生的电话号码:");
while(!feof(fp))
{
p=(struct stud_node *)malloc(size);
fscanf(fp,"%ld%c%c%d%ld%ld",&ID,&name,&sex,&age,&dormnumber,&phonenumber);
p->ID=ID;
strcpy(p->name,name);
strcpy(p->age,age);
p->dormnumber=dormnumber;
p->phonenumber=phonenumber;
p->next=NULL;
if(head==NULL) head=p;
else tail->next=p;
tail=p;
}
printf("\n1.继续输入.\n0.结束输入.\n");
printf("请选择:");
scanf("%d",&y);
if(y)
return head;
fclose(fp);

}

我正准备做这个程序,你想要什么版本的,是控制台版本的是还是win32版本的。


C语言 学生成绩管理系统 急!~~~
2014-07-21 用C语言编写程序,学生成绩管理系统,急。 2011-01-05 c语言程序设计:学生成绩管理系统 紧急!!! 2008-06-28 C语言学生成绩管理系统代码 急!!! 54 2018-01-24 怎样用C语言写学生成绩管理系统? 1 2009-01-09 急!!c语言编程---学生成绩管理系统 更多类似问题 > 为你推荐:...

用C语言写学生成绩管理系统基本功能:1、 输入一个班级的学生基本信息...
printf("请输入学生的学号:");printf("请输入学生的姓名:");printf("请输入学生的性别:");printf("请输入学生的年龄:");printf("请输入学生的宿舍号码:");printf("请输入学生的电话号码:");while(!feof(fp)){ p=(struct stud_node *)malloc(size);fscanf(fp,"%ld%c%c%d%ld%ld",&ID,&...

用C语言编一个学生成绩管理系统。
printf("高数最高成绩学生信息:\\n学号:%d 姓名:%s 学院代号:%d 班级号:%d 高数成绩:%0.2f 英语成绩:%0.2f c语言成绩:%0.2f 总分:%0.2f 平均分:%0.2f\\n",stu[max1].num,stu[max1].name,stu[max1].x_num,stu[max1].class_num,stu[max1].score1,stu[max1].score2,stu[max1].score3,stu[...

怎么用C语言作学生成绩管理系统
printf(" 学生成绩管理系统\\n");printf(" ***\\n");printf(" * *\\n");printf(" *[1]输入数据 *\\n");printf(" *[2]查找数据 *\\n");printf(" *[3]

用c语言编写 学生成绩管理
1.主要功能:(1)能按学期、按班级完成对学生成绩的录入、修改(2)能按班级统计学生的成绩,求学生的总分及平均分,并能根据学生的平均成绩进行排序(3)能查询学生成绩,不及格科目... 1.主要功能:(1) 能按学期、按班级完成对学生成绩的录入、修改(2) 能按班级统计学生的成绩,求学生的总分及平均分,并能根据学生...

c语言设计一个学生成绩管理程序,求助
cout<<"请输入语文成绩:";cin>>a[top].yw;cout<<"请输入数学成绩:";cin>>a[top].sx;cout<<"请输入英语成绩:";cin>>a[top].yy;sort(a+1,a+top+1,cmp);} void cz(){ string name;cout<<"请输入删除者的姓名:";cin>>name;for(int i=1; i<=50; i++)if(a[i].xm==...

求《班级学生成绩管理系统》C语言设计
start: printf("\\t\\t\\t欢迎使用学生成绩管理系统\\n\\n");\/\/一下为功能选择模块 do{ printf("\\n\\t\\t\\t\\t1.录入学员信息\\n\\t\\t\\t\\t2.显示学员信息\\n\\t\\t\\t\\t3.成绩排序信息\\n\\t\\t\\t\\t4.添加学员信息\\n\\t\\t\\t\\t5.删除学员信息\\n\\t\\t\\t\\t6.退出\\n");printf("\\t\\t\\t\\...

用C语言编程实现一个简单的学生成绩管理系统
include <stdio.h>#include <stdlib.h>#include <string.h>#include<memory.h>typedef struct student{char num[16];char name[20];float score[4];struct student *next;} stu;stu *head; \/\/ 链头指针stu* create()\/\/ 创建链表,从文件读取信息 { printf("Reading student information...

用C语言编写一个简单的学生成绩管理的程序
start: printf("\\n\\t\\t\\t欢迎使用学生成绩管理系统\\n");\/*一下为功能选择模块*\/ do { printf("\\n\\t\\t\\t\\t1.录入学员信息\\n\\t\\t\\t\\t2.显示学员信息\\n\\t\\t\\t\\t3.成绩排序信息\\n\\t\\t\\t\\t4.添加学员信息\\n\\t\\t\\t\\t5.删除学员信息\\n\\t\\t\\t\\t6.修改学员信息\\n\\t\\t\\t\\t...

使用C语言做一个学生成绩管理系统
题描述用C语言编写一个程序实现学生成绩管理,每个学生包括3门课的成绩,从键盘输入学生信息,包括学号、姓名、三门课成绩,计算出学生的平均成绩,按照学生平均成绩由大到小... 题描述 用C语言编写一个程序实现学生成绩管理,每个学生包括3门课的成绩,从键盘输入学生信息,包括学号、姓名、三门课成绩,计算出学生...

吉林市18235039027: c语言 学生成绩管理系统设计学生成绩信息包括:学号,姓名,三门课程成绩(数学、英语和计算机)等.主要功能:(1) 计算各个学生的总分及平均分,... -
栋郎维铁:[答案] 希望对你有所帮助.#include"stdio.h"#include"stdlib.h"#include"string.h"#define N 3typedef struct z1{ char no[11]; char name[15]; int score[N]; float sum; float average; int order; ...

吉林市18235039027: c语言学生管理系统学生成绩管理系统 功能: 每个学生信息为一个记录,包括学号,姓名,性别,3 门课程成绩 -
栋郎维铁: #include"stdio.h"#include"conio.h"#include"string.h"#include"stdlib.h" void look(); /*声明查看函数*/ void save(); /*声明保存函数*/ void search_name(); /*声明按姓名查看函数*/ void search_number(); /*声明按学号查看...

吉林市18235039027: 编程如何用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*/ ...

吉林市18235039027: C语言编程 学生成绩管理系统 -
栋郎维铁: 这是我们大一时候课程设计做的,学生成绩管理系统,功能比楼主需要的稍多一些,你看一下,不需要的函数删掉它好了.#include<stdio.h> #include<malloc.h> #include<string.h>struct stu {long num;char name[20];float score1,score2,score...

吉林市18235039027: 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 ...

吉林市18235039027: 如何用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 { ...

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

吉林市18235039027: 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()//建立链表 录入学生...

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