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

学生信息管理系统C版

02月23日 编辑 39baobao.com

[用C做的教师信息管理系统]占位置,有时间再给你弄一个 //代码在vs2005中编译通过,一个有三个文件,使用前请先新建一个文件tc.dat//头文件teacher.h#pragma once#ifndef TEACHER_H_#define TEACHER_H_#def...+阅读

#include #include #include using namespace std; struct Student { int num; char name[20]; Student * next; }; struct StuMen { Student * head; bool headNull() { head = new Student; head->next = NULL; return true; } bool StuAdd() { int num; char name[20]; cout<<;"请输入学生学号:"; cin>>num; cout<<;"请输入学生姓名:"; cin>>name; Student * p = new Student; p->num = num; strcpy(p->name,name); p->next = head->next; head->next = p; return true; } bool modify(int num) { int renum; char rename[20]; for (Student *p = head;p !=NULL;p = p->next) { if (p->num == num) { cout<<;"请重新输入该生学号:"; cin>>renum; cout<<;"请重新输入该生姓名:"; cin>>rename; p->num = renum; strcpy(p->name,rename); return true; } } return false; } bool findNum(int num) { for (Student *p = head;p != NULL;p = p->next) { if (num == p->num ) { cout<<;"该生信息:"<num<<'\t'<name<next) { if (strcmp(name,p->name) == 0 ) { cout<<;"该生信息:"<num<<'\t'<name<next != NULL;p=p->next) { if (p->next->num == num) { Student *p2 = p->next->next; delete p->next; p->next = p2; return true; } } return false; } void Print() { for (Student *p = head->next;p != NULL;p = p->next) { cout<num<<'\t'<name<next; delete p; p = p2; } } }; void main() { _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF|_CRTDBG_LEAK_CHECK_DF); int sel; StuMen s; s.headNull(); while(1) { system("cls"); cout<<"1.添加学生信息."<>sel; switch (sel) { case 1:s.StuAdd(); break; case 2:int modefynum; cout<<;"请输入要修改的学生学号:"; cin>>modefynum; if (s.modify(modefynum)) { cout<<;"修改成功!"<>Findnum; if (!s.findNum(Findnum)) { cout<<;"没有此学生!"<>Findname; if (!s.findName(Findname)) { cout<<;"没有此学生!"<>delnum; if (s.Del(delnum)) { cout<<;"删除成功!"<

以下为关联文档:

图书信息管理系统设计 c语言高级语言程序设计(2)课程设计 一程序设计说明书【设计题目】图书馆借阅管理【问题描述】图书馆,适合用C++面向对象的功能来描述。图书馆管理系统分为借书、还书、图书管理和读...

C语言程序设计学生信息管理系统求啊 。。。。#include#include#include//全局变量 struct student { int num; char name[20]; char kecheng[20]; float score; struct student *next; }; struct student *head=NULL;//...

c语言课程设计学生信息管理系统模拟我发给你。 #include "stdio.h" #include "windows.h" #define NUM 100 struct node { int stuNO; //学号 char name[10]; //姓名 char sex[2]; //性别 int age; //年龄 int Chinese...

C语言程序设计题目:学生信息管理系统设计已经按你的要求改写并调试通过了。调试环境win-tc和Dev-c++. 这是我在以前帮别人写的学生成绩管理系统的基础上改写的,学生信息用文件保存,从文件读入。同时为了简化起见,没有...

C语言学生信息管理系统#include #define LEN sizeof(struct student) #define n 10 struct student *p[n+1]; struct student { char num[30]; char name[20]; char sex[10]; int age; char nativ...

用C语言编写一个学生信息管理系统#include "stdio.h" #include "stdlib.h" #include "string.h" #include "conio.h" jiemian(); struct student { char name[50]; char sex[5]; int age; char num[50]; float score...

学生信息管理系统C语言版#includenbsp;“stdio.h“#includenbsp;“bios.h“#includenbsp;“conio.h“#includenbsp;“STRING.H“#includenbsp;“DOS.h“#includenbsp;“process.h“#includenbsp;“s...

C语言编写一个学生信息管理系统求原代码谢谢#include#include "conio.h" #include "malloc.h" #include "windows.h" using namespace std; typedef struct { char name[20]; int stunum; int score; }StuElem; class StuLis...

学生信息管理系统C语言怎么做跟别人问重复了,你们难道是一个老师教的啊? 网上很多类似的,你参考下:#include#includestruct student { char name[30]; float math; float chinese; float english; float ave...

推荐阅读
图文推荐