三九宝宝网宝宝教育写作范文

用c语言设计这样的学生成绩统计系统!急

02月16日 编辑 39baobao.com

[C学生成绩统计系统]#include #include using namespace std; struct Student { string sid; string sname; int math; int computer; int english; }; int main() { Student S[10]; cout for (...+阅读

#include#include#include#define MAX 1000/*定义学生成绩信息结构*/struct stu{ char id[8]; char name[8]; double Chinese; double Math; double English; double average; double total;};/*学生结构数组,用于存储学生成绩信息*/struct stu students[MAX];/*当前学生人数*/int current;void input(){ int i; printf("请输入学生人数:"); scanf("%d", & current); for (i = 0; i3) { n = 3; } printf("学号\t姓名\t语文\t数学\t英语\t平均分\t名次\n"); for (i = 0; i60) & (array[i].Math >60) & (array[i].English >60)) { if (array[i].average >90) mark = 1; else if (array[i].average >85) { if (array[i].Chinese == 100) mark = 1; if (array[i].Math == 100) mark = 1; if (array[i].English == 100) mark = 1; if (array[i].Chinese >95 & array[i].English >95) mark = 1; if (array[i].Chinese >95 & array[i].Math >95) mark = 1; if (array[i].Math >95 & array[i].English >95) mark = 1; } if (mark == 1) { printf("%s\t%s\t", array[i].id, array[i].name); printf("%.f\t%.f\t%.f\t%.1f\t", array[i].Chinese, array[i].Math, array[i].English, array[i].average); printf("%d\n", i+1); } } }}/*按学生姓名查询成绩*/void search_name(struct stu array[], int n, char* name){ int i; char mark = 1; for (i = 0; i

以下为关联文档:

用c语言设计这样的学生成绩统计系统急#include #include #define MAX 1000/*定义学生成绩信息结构*/ struct stu { char id[8]; char name[8]; double Chinese; double Math; double English; double average; d...

用c语言编写简单学生成绩统计软件#include<stdio.h> int main() { float mark1,mark2,c; int you=0; for(;;) { printf("请输入两门课程的成绩_____\b\b\b\b\b"); scanf("%f,%f",&mark1,&mark2); c=(mark1+mark2)/...

用C编写一个学生成绩管理系统急设计一个学生成绩管理系#include #include #define N 50 /*定义符号常量,代表学生人数最大值*/ int count=0; /*全局变量,用于记录数组的当前位置*/ struct student /*定义结构体类型,代表学生信息*/ {...

c语言课程设计学生成绩管理系统急求参考不要网上那些下的C语言课程设计任务书 一、题目: 学生成绩管理 二、目的与要求 1. 目的: (1)基本掌握面向过程程序设计的基本思路和方法; (2)达到熟练掌握C语言的基本知识和技能; (3)能够利用所学的基...

用C语言设计一个学生成绩的管理系统#include"stdio.h"/*定义学生结构体*/struct Student{char()ID[20];char()Name[20];float Mark1;float Mark2;float Mark3;float Average;};/*声明学生数组及学生数量*/struct S...

求一c语言课程设计学生成绩管理系统程序参考以下,部分代码改了即可: 首先将记录储存再TXT文件下,格式如下所示:学号 姓名 性别 等级 笔试 机试 类别1 张三 男 二级 66 77 2 李四 男 三级 88 99 3 张二 男 二级 40 60 4...

学生成绩管理系统 C语言课程设计我可以帮你写,不过分数感觉有点少了哦· 写这个东西很浪费时间的, 发到那里给你呢··我用VC++可以吗? 你到底有多少门课程,详细点. #include <stdio.h> #include <stdlib.h> #i...

c语言实现设计一个学生成绩管理系统课程参考代码如下,不过还是建议自己写一写比较好:#include#include#includestruct student //结构体 { char name[20]; //姓名 char number[20]; //学号 double math; //数学 double...

C语言学生成绩管理系统的设计#include#define N 40#includestruct student{ long num; char name[10]; float score[5]; int number[6][6]; float sum; }; void menu() { printf(" *********************...

推荐阅读
图文推荐