#include "homewindow.h"
#include "ui_homewindow.h"
#include "readmsgfromfilewd.h"
#include <QList>
#include <QDialog>
#include <iostream>
#include "student.h"
#include "displaystumsg.h"
#include "inputstumsg.h"
#include "seachstubyid.h"
#include "insetstu.h"
#include "modifystumsg.h"
#include "byebye.h"
class Student;
QList<Student> lst; // 此处的lst放在student.h文件中就会报错
homeWindow::homeWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::homeWindow)
{
ui->setupUi(this);
connect(ui->readByfileBtn, SIGNAL(clicked(bool)), this, SLOT(readStuMsgFormFile()));
connect(ui->outputStudentMsgBtn, SIGNAL(clicked(bool)), this, SLOT(disStuMsg()));
connect(ui->inputStudentMsgBtn, SIGNAL(clicked(bool)), this, SLOT(inpStuMsg()));
connect(ui->sortBtn, SIGNAL(clicked(bool)), this, SLOT(sortStuAve()));
connect(ui->findMsgWithStudentNumBtn, SIGNAL(clicked(bool)), this, SLOT(search()));
connect(ui->insertStudentMsgBtn, SIGNAL(clicked(bool)), this, SLOT(insert()));
connect(ui->modifyStudentMsgBtn, SIGNAL(clicked(bool)), this, SLOT(modify()));
connect(ui->writeAllRecordToFileBtn, SIGNAL(clicked(bool)), this, SLOT(write()));
connect(ui->exitBtn, SIGNAL(clicked(bool)), this, SLOT(byeBye()));
}
homeWindow::~homeWindow()
{
delete ui;
}
void homeWindow::readStuMsgFormFile()
{
readMsgFromFileWD* readWD = new readMsgFromFileWD;
readWD->setWindowTitle("读取数据");
readWD->show();
readWD->readMsgFromFile();
}
void homeWindow::disStuMsg()
{
displayStuMsg *dis = new displayStuMsg;
dis->setWindowTitle("显示学生信息");
dis->show();
dis->dispStuMsg();
}
void homeWindow::inpStuMsg()
{
inputStuMsg *inp = new inputStuMsg;
inp->setWindowTitle("输入学生信息");
inp->show();
}
void homeWindow::sortStuAve()
{
displayStuMsg *dis = new displayStuMsg;
dis->setWindowTitle("按降序对学生平均分进行排序");
dis->show();
dis->sortWithStuAve();
}
void homeWindow::search()
{
seachStuById *sea = new seachStuById;
sea->setWindowTitle("根据学号查找学生信息");
sea->show();
}
void homeWindow::insert()
{
insetStu *ins = new insetStu;
ins->setWindowTitle("插入学生");
ins->show();
}
void homeWindow::modify()
{
modifyStuMsg *mod = new modifyStuMsg;
mod->setWindowTitle("修改学生信息");
mod->show();
}
void homeWindow::write()
{
readMsgFromFileWD* readWD = new readMsgFromFileWD;
readWD->setWindowTitle("将数据写入文件");
readWD->show();
readWD->saveAsFile();
}
void homeWindow::byeBye()
{
this->hide();
byebye *b = new byebye;
b->setWindowTitle("学生信息管理系统");
b->show();
}
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
软件开发设计:PHP、QT、应用软件开发、系统软件开发、移动应用开发、网站开发C++、Java、python、web、C#等语言的项目开发与学习资料 硬件与设备:单片机、EDA、proteus、RTOS、包括计算机硬件、服务器、网络设备、存储设备、移动设备等 操作系统:LInux、IOS、树莓派、安卓开发、微机操作系统、网络操作系统、分布式操作系统等。此外,还有嵌入式操作系统、智能操作系统等。 网络与通信:数据传输、信号处理、网络协议、网络与通信硬件、网络安全网络与通信是一个非常广泛的领域,它涉及到计算机科学、电子工程、数学等多个学科的知识。 云计算与大数据:数据集、包括云计算平台、大数据分析、人工智能、机器学习等,云计算是一种基于互联网的计算方式,通过这种方式,共享的软硬件资源和信息可以按需提供给计算机和其他设备。
资源推荐
资源详情
资源评论
收起资源包目录
Qt <----> C++课程综合实践设计学生信息管理系统。.zip (29个子文件)
cm
readmsgfromfilewd.ui 888B
insetstu.ui 3KB
byebye.cpp 187B
homewindow.cpp 3KB
insetstu.cpp 1KB
homewindow.h 524B
readmsgfromfilewd.h 397B
StudentMsgManageSystem.pro 870B
byebye.ui 2KB
displaystumsg.cpp 1KB
seachstubyid.cpp 1KB
seachstubyid.ui 2KB
main.cpp 230B
displaystumsg.h 461B
inputstumsg.cpp 835B
readmsgfromfilewd.cpp 3KB
modifystumsg.cpp 1KB
seachstubyid.h 342B
inputstumsg.h 347B
displaystumsg.ui 880B
modifystumsg.ui 3KB
StudentMsgManageSystem.pro.user 23KB
insetstu.h 307B
student.h 1KB
inputstumsg.ui 3KB
homewindow.ui 5KB
modifystumsg.h 339B
byebye.h 251B
student.cpp 25B
共 29 条
- 1
资源评论
妄北y
- 粉丝: 9861
- 资源: 1万+
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功