c语言大作业学生管理完整(整理)

2021-01-20 09:22

c

#include "stdafx.h"

#include <stdio.h>

#include <stdlib.h>

#include <conio.h>

#include <string.h>

#define N 100

struct student

{

char name[10]。

int num。

char sex[10]。

float math。

float yingyu。

float zhengzhi。

float ywen。

float aver。

float sum。

}stu。

void menu()

{

system("cls")。

printf(" * 欢迎使用学生成绩管理系统 * \n")。

printf(" * ======================= * \n")。 printf(" * 请选择相应的功能: * \n")。

printf(" * 1.成绩录入 * \n")。

printf(" * 2.查询成绩 * \n")。

printf(" * 3.修改成绩 * \n")。

printf(" * 4.插入成绩 * \n")。

printf(" * 5.报表输出 * \n")。

printf(" * 6.删除操作 * \n")。

printf(" * 0.退出系统 * \n" )。

printf(" * ======================= * \n")。printf(" \n\n\n\n\n\n\n\n\n * * * * \n")。

}

//成绩录入

void input()

{

system("cls")。

FILE *fp。

student xs。 /*定义一个结构体变量来装从文件中读出来的数据*/ int c=1。

if((fp=fopen("student.dat","ab"))==NULL)

{

printf("can't open file!\n")。exit(0)。}


c语言大作业学生管理完整(整理).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:9基础会计第四章第一节复式记账概述 第二节借贷记账法

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: