学生成绩管理系统课设报告 第1篇
作用:存储管理员的基本信息,包括登录所需的用户名和密码,以及管理员的联系信息等。
管理员信息表
数据名称
数据类型
数据描述
Int
管理员id
Username
Varchar
用户名
Password
Varchar
Real_name
Varchar
Level
Tinyint
School
Varchar
所属学校
Varchar
Phone
Varchar
学生成绩管理系统课设报告 第2篇
#include __
void CStudentInfoManagementDoc::OnInputButton()
{
// TODO: 在此添加命令处理程序代码
StudentInfoDlg sid;
if (() == IDOK)//显示一个模态对话框,当对话框关闭时,他会返回一个值如果你是按确定按钮关闭的对话框,则返回IDOK(这是系统内部定义的一个宏值)如果是按取消按钮关闭的对话框,则返回IDCANCEL
{
TCHAR strExePath[MAX_PATH];
GetModuleFileName(NULL, strExePath, MAX_PATH);//获取当前目录
strExePath[MAX_PATH - 1] = '\0';//把文件变成字符串
CString sFilePath = strExePath;
int nPos = (_T('.'));//从后面往前找小数点
sFilePath = (nPos + 1) + _T(_txt_);//更改文件后缀为txt
(); ();
std::ifstream ifile(sFilePath, std::ios_base::in);//读取文件
if (ifile)//读取成功
{
int size;
ifile >> size;
for (int k = 0; k < size; ++k)
{
Student* pStudent = new Student();//创建指针学生
ifile >> (*pStudent);
(pStudent->GetMath());
(pStudent->GetCpp());
delete pStudent;
();
auto pos = GetFirstViewPosition();
GetNextView(pos)->InvalidateRect(nullptr, true);
BOOL CStudentInfoManagementDoc::OnOpenDocument(LPCTSTR lpszPathName)
{
if (!CDocument::OnOpenDocument(lpszPathName))
return FALSE;
// TODO: 在此添加您专用的创建代码
();//删除数据
();
std::ifstream ifile;
(lpszPathName, std::ios_base::in);
if (ifile)
{
int size;
ifile >> size;
for (int k = 0; k < size; ++k)
{
Student* pStudent = new Student();
ifile >> (*pStudent);
(pStudent->GetMath());//增加数据
(pStudent->GetCpp());
delete pStudent;
();
auto pos = GetFirstViewPosition();
GetNextView(pos)->InvalidateRect(nullptr, true);//向指定的窗体更新区域添加一个矩形
return TRUE;
学生成绩管理系统课设报告 第3篇
为了更好的了解学生的学习情况,以对学生进行更详细的了解,对未来的教学有相应的规划,同时为了便于期末总结,我们设计了一套学生成绩管理系统。
图 3-1 系统功能模块图
图 3-2 业务流程图
本项目的开发及运行环境要求:
打开 Code Block
图 4-1 Code Block 使用界面
图 4-2 工程创建界面