• 大小: 132KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-06
  • 语言: C/C++
  • 标签:

资源简介

学生选课管理系统,可以完成学生选课,退课,查看课表,老师管理课程,学生等功能。

资源截图

代码片段和文件信息

#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include“hanshu.h“
//总菜单
char menu()
{
int k=0;
char a[3]ci;
system(“cls“);
cout< cout<<“\t\t\t\tC++课程设计课题\n\n“< cout<<“\t\t********************************************\n“
<<“\t\t*                                          *\n“
<<“\t\t*                选修课小系统              *\n“
<<“\t\t*                                          *\n“
<<“\t\t*                                          *\n“
<<“\t\t*     操作方式:                            *\n“
<<“\t\t*               1.选修课系统学生端         *\n“
<<“\t\t*                                          *\n“
<<“\t\t*               2.选修课系统管理端         *\n“
<<“\t\t*                                          *\n“
<<“\t\t********************************************\n“< while(1)
{
cout<<“\n\t\t请选择登入方式: “;
cin>>a;
if(strlen(a)==1)
{
for(i=‘1‘;i<=‘2‘;i++)
{
c=i;
if(c==a[0])
return c;
}
}
cerr<<“\n\n\t\t\t\t输入有误!\n“< k++;
if(k>2)
{
system(“cls“);
cout<<“\n\n\n\n\n\n\t\t错误输入次数达三次,按任意键退出……\n\n“< getch();
return 0;
}
}
}
///////////////////////////////////////////////////////////////////////////////////
//选修课系统端操作
char custom()
{
char A[10];
char b;
char i;
int k = 0;
system(“cls“);;
cout<<“\n\n\n“
<<“\t\t※※※※※※※※※※※※※※※※※※※※※※※\n“
<<“\t\t※             选修课系统学生端             ※\n“
<<“\t\t※                                          ※\n“
<<“\t\t※               操作方式:                  ※\n“
<<“\t\t※             1.学生选课                   ※\n“
<<“\t\t※             2.查看课表                   ※\n“
<<“\t\t※             3.选课情况                   ※\n“
<<“\t\t※             4.删除选课                   ※\n“
<<“\t\t※             5.退出系统                   ※\n“
<<“\t\t※                                          ※\n“
<<“\t\t※※※※※※※※※※※※※※※※※※※※※※※\n“< while(1)
{
cout<<“\t\t\t请选择操作方式: “;
cin>>A;
if(strlen(A)==1)
{
for(i=‘1‘;i<=‘5‘;i++)
{
b=i;

if(b==A[0]) return b;
}
}
cerr<<“\n\t\t\t\t输入有误!\n“< k++;
if(k>2)
{
system(“cls“);
cout<<“\n\n\n\n\n\n\t\t\t错误输入达三次按任意键退出……\n“< getch();
exit(-1);
}
}
}
char server()
{
char A[10];
char b;
char i;
int k = 0;
system(“cls“);;
cout<<“\n\n\n“
<<“\t\t※※※※※※※※※※※※※※※※※※※※※※※※※※※\n“
<<“\t\t※                                                  ※\n“
<<“\t\t※                  选修课系统管理端                ※\n“
<<“\t\t※                                                  ※\n“
<<“\t\t※      操作方式:                                   ※\n“
<<“\t\t※               1.增加学生      2.增加课程         ※\n“
<<“\t\t※               3.删除学生      4.删除课程         ※\n“
<<“\t\t※               5.填写成绩      6.更改学分         ※\n“
<<“\t\t※               7.学生情况      8.选课情况         ※\n“
<<“\t\t※ 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      16280  2009-06-17 22:13  C++\hanshu.h

     文件       1455  2009-06-17 21:30  C++\dis.h

     文件       6045  2009-06-17 21:52  C++\w.cpp

     文件       5910  2009-06-18 11:28  C++\class.h

     文件     128343  2009-06-18 22:14  C++\312007080611220冯宗富C++课程设计\312007080611220冯宗富C++课程设计.rar

     目录          0  2009-06-18 22:18  C++\312007080611220冯宗富C++课程设计

     目录          0  2009-06-18 12:09  C++

----------- ---------  ---------- -----  ----

               158033                    7


评论

共有 条评论