├── .vs └── Student │ └── v14 │ └── .suo ├── Debug ├── Student.exe ├── Student.ilk └── Student.pdb ├── README.md └── Student ├── AddCourse.cpp ├── AddCourse.h ├── AddStudent.cpp ├── AddStudent.h ├── CancelSelection.cpp ├── CancelSelection.h ├── CourseClass.cpp ├── CourseClass.h ├── CourseManagement.cpp ├── CourseManagement.h ├── CourseSave.cpp ├── CourseSave.h ├── Debug ├── AddCourse.obj ├── AddStudent.obj ├── CancelSelection.obj ├── CourseClass.obj ├── CourseManagement.obj ├── CourseSave.obj ├── DeleteCourse.obj ├── DeleteStudent.obj ├── Public.obj ├── QuerryCourse.obj ├── QueryStudent.obj ├── SelectionClass.obj ├── SelectionManagement.obj ├── SetSelection.obj ├── Student.Build.CppClean.log ├── Student.log ├── Student.obj ├── Student.pch ├── Student.res ├── Student.tlog │ ├── CL.command.1.tlog │ ├── CL.read.1.tlog │ ├── CL.write.1.tlog │ ├── Student.lastbuildstate │ ├── link.command.1.tlog │ ├── link.read.1.tlog │ ├── link.write.1.tlog │ ├── rc.command.1.tlog │ ├── rc.read.1.tlog │ └── rc.write.1.tlog ├── StudentClass.obj ├── StudentDlg.obj ├── StudentManagement.obj ├── StudentSave.obj ├── mainControl.obj ├── stdafx.obj ├── vc140.idb └── vc140.pdb ├── DeleteCourse.cpp ├── DeleteCourse.h ├── DeleteStudent.cpp ├── DeleteStudent.h ├── Public.cpp ├── Public.h ├── QuerryCourse.cpp ├── QuerryCourse.h ├── QueryStudent.cpp ├── QueryStudent.h ├── ReadMe.txt ├── SelectionClass.cpp ├── SelectionClass.h ├── SelectionManagement.cpp ├── SelectionManagement.h ├── SetSelection.cpp ├── SetSelection.h ├── Student.aps ├── Student.cpp ├── Student.h ├── Student.rc ├── Student.vcxproj ├── Student.vcxproj.filters ├── StudentClass.cpp ├── StudentClass.h ├── StudentDlg.cpp ├── StudentDlg.h ├── StudentManagement.cpp ├── StudentManagement.h ├── StudentSave.cpp ├── StudentSave.h ├── courses.txt ├── mainControl.cpp ├── mainControl.h ├── res ├── Student.ico └── Student.rc2 ├── resource.h ├── stdafx.cpp ├── stdafx.h ├── students.txt └── targetver.h /.vs/Student/v14/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/.vs/Student/v14/.suo -------------------------------------------------------------------------------- /Debug/Student.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Debug/Student.exe -------------------------------------------------------------------------------- /Debug/Student.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Debug/Student.ilk -------------------------------------------------------------------------------- /Debug/Student.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Debug/Student.pdb -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # StudentInformationManagementSystem 2 | 一个基于MFC实现的的学生信息管理系统 3 | -------------------------------------------------------------------------------- /Student/AddCourse.cpp: -------------------------------------------------------------------------------- 1 | // AddCourse.cpp : implementation file 2 | // 3 | 4 | #include "stdafx.h" 5 | #include "Student.h" 6 | #include "AddCourse.h" 7 | #include "afxdialogex.h" 8 | 9 | 10 | // CAddCourse dialog 11 | 12 | IMPLEMENT_DYNAMIC(CAddCourse, CDialogEx) 13 | 14 | CAddCourse::CAddCourse(CWnd* pParent /*=NULL*/) 15 | : CDialogEx(IDD_DIALOG6, pParent) 16 | { 17 | 18 | } 19 | 20 | CAddCourse::~CAddCourse() 21 | { 22 | } 23 | 24 | void CAddCourse::DoDataExchange(CDataExchange* pDX) 25 | { 26 | CDialogEx::DoDataExchange(pDX); 27 | DDX_Control(pDX, IDC_EDIT1, getName); 28 | DDX_Control(pDX, IDC_EDIT2, getCredit); 29 | DDX_Control(pDX, IDC_EDIT1, getName); 30 | } 31 | 32 | 33 | BEGIN_MESSAGE_MAP(CAddCourse, CDialogEx) 34 | ON_BN_CLICKED(IDOK, &CAddCourse::OnBnClickedOk) 35 | END_MESSAGE_MAP() 36 | 37 | 38 | // CAddCourse message handlers 39 | 40 | 41 | void CAddCourse::OnBnClickedOk() 42 | { 43 | // TODO: Add your control notification handler code here 44 | CDialogEx::OnOK(); 45 | CString credit; 46 | getCredit.GetWindowTextW(credit); 47 | int theCredit = _ttoi(credit); 48 | 49 | CString name; 50 | getName.GetWindowTextW(name); 51 | USES_CONVERSION; 52 | string theName(W2A(name)); 53 | 54 | CPublic::mc.addCourse(theCredit, theName); 55 | } 56 | -------------------------------------------------------------------------------- /Student/AddCourse.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | 4 | 5 | // CAddCourse dialog 6 | 7 | class CAddCourse : public CDialogEx 8 | { 9 | DECLARE_DYNAMIC(CAddCourse) 10 | 11 | public: 12 | CAddCourse(CWnd* pParent = NULL); // standard constructor 13 | virtual ~CAddCourse(); 14 | 15 | // Dialog Data 16 | #ifdef AFX_DESIGN_TIME 17 | enum { IDD = IDD_DIALOG6 }; 18 | #endif 19 | 20 | protected: 21 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 22 | 23 | DECLARE_MESSAGE_MAP() 24 | public: 25 | // CEdit getName; 26 | CEdit getCredit; 27 | CEdit getName; 28 | afx_msg void OnBnClickedOk(); 29 | }; 30 | -------------------------------------------------------------------------------- /Student/AddStudent.cpp: -------------------------------------------------------------------------------- 1 | // AddStudent.cpp : implementation file 2 | // 3 | 4 | #include "stdafx.h" 5 | #include "Student.h" 6 | #include "AddStudent.h" 7 | #include "afxdialogex.h" 8 | #include "Public.h" 9 | 10 | 11 | // CAddStudent dialog 12 | 13 | IMPLEMENT_DYNAMIC(CAddStudent, CDialogEx) 14 | 15 | CAddStudent::CAddStudent(CWnd* pParent /*=NULL*/) 16 | : CDialogEx(IDD_DIALOG2, pParent) 17 | { 18 | 19 | } 20 | 21 | CAddStudent::~CAddStudent() 22 | { 23 | } 24 | 25 | void CAddStudent::DoDataExchange(CDataExchange* pDX) 26 | { 27 | CDialogEx::DoDataExchange(pDX); 28 | DDX_Control(pDX, IDC_EDIT1, getID); 29 | DDX_Control(pDX, IDC_EDIT2, getName); 30 | } 31 | 32 | 33 | BEGIN_MESSAGE_MAP(CAddStudent, CDialogEx) 34 | ON_BN_CLICKED(IDOK, &CAddStudent::OnBnClickedOk) 35 | END_MESSAGE_MAP() 36 | 37 | 38 | // CAddStudent message handlers 39 | 40 | 41 | void CAddStudent::OnBnClickedOk() 42 | { 43 | // TODO: Add your control notification handler code here 44 | CDialogEx::OnOK(); 45 | CString id; 46 | getID.GetWindowTextW(id); 47 | long int theID = _ttoi(id); 48 | 49 | CString name; 50 | getName.GetWindowTextW(name); 51 | USES_CONVERSION; 52 | string theName(W2A(name)); 53 | 54 | CPublic::mc.addStudent(theID,theName); 55 | 56 | 57 | } 58 | -------------------------------------------------------------------------------- /Student/AddStudent.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | 4 | 5 | // CAddStudent dialog 6 | 7 | class CAddStudent : public CDialogEx 8 | { 9 | DECLARE_DYNAMIC(CAddStudent) 10 | 11 | public: 12 | CAddStudent(CWnd* pParent = NULL); // standard constructor 13 | virtual ~CAddStudent(); 14 | 15 | // Dialog Data 16 | #ifdef AFX_DESIGN_TIME 17 | enum { IDD = IDD_DIALOG2 }; 18 | #endif 19 | 20 | protected: 21 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 22 | 23 | DECLARE_MESSAGE_MAP() 24 | public: 25 | CEdit getID; 26 | CEdit getName; 27 | afx_msg void OnBnClickedOk(); 28 | }; 29 | -------------------------------------------------------------------------------- /Student/CancelSelection.cpp: -------------------------------------------------------------------------------- 1 | // CancelSelection.cpp : implementation file 2 | // 3 | 4 | #include "stdafx.h" 5 | #include "Student.h" 6 | #include "CancelSelection.h" 7 | #include "afxdialogex.h" 8 | 9 | 10 | 11 | // CCancelSelection dialog 12 | 13 | IMPLEMENT_DYNAMIC(CCancelSelection, CDialogEx) 14 | 15 | CCancelSelection::CCancelSelection(CWnd* pParent /*=NULL*/) 16 | : CDialogEx(IDD_DIALOG11, pParent) 17 | { 18 | 19 | } 20 | 21 | CCancelSelection::~CCancelSelection() 22 | { 23 | } 24 | 25 | void CCancelSelection::DoDataExchange(CDataExchange* pDX) 26 | { 27 | CDialogEx::DoDataExchange(pDX); 28 | // DDX_Control(pDX, IDC_EDIT1, theID); 29 | // DDX_Control(pDX, IDC_EDIT2, theName); 30 | DDX_Control(pDX, IDC_EDIT1, getID); 31 | DDX_Control(pDX, IDC_EDIT2, getName); 32 | } 33 | 34 | 35 | BEGIN_MESSAGE_MAP(CCancelSelection, CDialogEx) 36 | ON_BN_CLICKED(IDOK, &CCancelSelection::OnBnClickedOk) 37 | END_MESSAGE_MAP() 38 | 39 | 40 | // CCancelSelection message handlers 41 | 42 | 43 | void CCancelSelection::OnBnClickedOk() 44 | { 45 | // TODO: Add your control notification handler code here 46 | CDialogEx::OnOK(); 47 | CString id; 48 | getID.GetWindowTextW(id); 49 | long int theID = _ttoi(id); 50 | 51 | CString name; 52 | getName.GetWindowTextW(name); 53 | USES_CONVERSION; 54 | string theName(W2A(name)); 55 | 56 | CPublic::mc.cancelSelection(theID, theName); 57 | } 58 | -------------------------------------------------------------------------------- /Student/CancelSelection.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | 4 | 5 | // CCancelSelection dialog 6 | 7 | class CCancelSelection : public CDialogEx 8 | { 9 | DECLARE_DYNAMIC(CCancelSelection) 10 | 11 | public: 12 | CCancelSelection(CWnd* pParent = NULL); // standard constructor 13 | virtual ~CCancelSelection(); 14 | 15 | // Dialog Data 16 | #ifdef AFX_DESIGN_TIME 17 | enum { IDD = IDD_DIALOG11 }; 18 | #endif 19 | 20 | protected: 21 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 22 | 23 | DECLARE_MESSAGE_MAP() 24 | public: 25 | // CEdit theID; 26 | // CEdit theName; 27 | afx_msg void OnBnClickedOk(); 28 | CEdit getID; 29 | CEdit getName; 30 | }; 31 | -------------------------------------------------------------------------------- /Student/CourseClass.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | #include 3 | #include"CourseClass.h" 4 | 5 | 6 | using namespace std; 7 | 8 | Course::Course() { 9 | this->credit = 0; 10 | this->name = ""; 11 | } 12 | 13 | Course::Course(int credit, string name) { 14 | this->credit = credit; 15 | this->name = name; 16 | } 17 | 18 | Course::~Course() { 19 | this->credit = 0; 20 | this->name = ""; 21 | } 22 | 23 | void Course::setCredit(int credit) { 24 | this->credit = credit; 25 | } 26 | 27 | void Course::setName(string name) { 28 | this->name = name; 29 | } 30 | 31 | int Course::getCredit() { 32 | return credit; 33 | } 34 | 35 | string Course::getName() { 36 | return name; 37 | } -------------------------------------------------------------------------------- /Student/CourseClass.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | using namespace std; 5 | 6 | class Course { 7 | private: 8 | int credit; 9 | string name; 10 | public: 11 | Course(); 12 | Course(int credit, string name); 13 | ~Course(); 14 | 15 | void setCredit(int credit); 16 | void setName(string name); 17 | 18 | int getCredit(); 19 | string getName(); 20 | }; -------------------------------------------------------------------------------- /Student/CourseManagement.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/CourseManagement.cpp -------------------------------------------------------------------------------- /Student/CourseManagement.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | 4 | // CCourseManagement dialog 5 | 6 | class CCourseManagement : public CDialogEx 7 | { 8 | DECLARE_DYNAMIC(CCourseManagement) 9 | 10 | public: 11 | CCourseManagement(CWnd* pParent = NULL); // standard constructor 12 | virtual ~CCourseManagement(); 13 | 14 | // Dialog Data 15 | #ifdef AFX_DESIGN_TIME 16 | enum { IDD = IDD_DIALOG5 }; 17 | #endif 18 | 19 | protected: 20 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 21 | 22 | DECLARE_MESSAGE_MAP() 23 | public: 24 | afx_msg void OnBnClickedButton1(); 25 | afx_msg void OnBnClickedButton2(); 26 | afx_msg void OnBnClickedButton10(); 27 | afx_msg void OnBnClickedButton5(); 28 | }; 29 | -------------------------------------------------------------------------------- /Student/CourseSave.cpp: -------------------------------------------------------------------------------- 1 | // CourseSave.cpp : implementation file 2 | // 3 | 4 | #include "stdafx.h" 5 | #include "Student.h" 6 | #include "CourseSave.h" 7 | #include "afxdialogex.h" 8 | 9 | 10 | // CCourseSave dialog 11 | 12 | IMPLEMENT_DYNAMIC(CCourseSave, CDialogEx) 13 | 14 | CCourseSave::CCourseSave(CWnd* pParent /*=NULL*/) 15 | : CDialogEx(IDD_DIALOG8, pParent) 16 | { 17 | 18 | } 19 | 20 | CCourseSave::~CCourseSave() 21 | { 22 | } 23 | 24 | void CCourseSave::DoDataExchange(CDataExchange* pDX) 25 | { 26 | CDialogEx::DoDataExchange(pDX); 27 | DDX_Control(pDX, IDC_EDIT1, getName); 28 | } 29 | 30 | 31 | BEGIN_MESSAGE_MAP(CCourseSave, CDialogEx) 32 | ON_BN_CLICKED(IDOK, &CCourseSave::OnBnClickedOk) 33 | END_MESSAGE_MAP() 34 | 35 | 36 | // CCourseSave message handlers 37 | 38 | 39 | void CCourseSave::OnBnClickedOk() 40 | { 41 | // TODO: Add your control notification handler code here 42 | CDialogEx::OnOK(); 43 | CString filename; 44 | getName.GetWindowTextW(filename); 45 | USES_CONVERSION; 46 | string theName(W2A(filename)); 47 | CPublic::mc.saveCourseInfo(theName); 48 | } 49 | -------------------------------------------------------------------------------- /Student/CourseSave.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | 4 | 5 | // CCourseSave dialog 6 | 7 | class CCourseSave : public CDialogEx 8 | { 9 | DECLARE_DYNAMIC(CCourseSave) 10 | 11 | public: 12 | CCourseSave(CWnd* pParent = NULL); // standard constructor 13 | virtual ~CCourseSave(); 14 | 15 | // Dialog Data 16 | #ifdef AFX_DESIGN_TIME 17 | enum { IDD = IDD_DIALOG8 }; 18 | #endif 19 | 20 | protected: 21 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 22 | 23 | DECLARE_MESSAGE_MAP() 24 | public: 25 | CEdit getName; 26 | afx_msg void OnBnClickedOk(); 27 | }; 28 | -------------------------------------------------------------------------------- /Student/Debug/AddCourse.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/AddCourse.obj -------------------------------------------------------------------------------- /Student/Debug/AddStudent.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/AddStudent.obj -------------------------------------------------------------------------------- /Student/Debug/CancelSelection.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/CancelSelection.obj -------------------------------------------------------------------------------- /Student/Debug/CourseClass.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/CourseClass.obj -------------------------------------------------------------------------------- /Student/Debug/CourseManagement.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/CourseManagement.obj -------------------------------------------------------------------------------- /Student/Debug/CourseSave.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/CourseSave.obj -------------------------------------------------------------------------------- /Student/Debug/DeleteCourse.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/DeleteCourse.obj -------------------------------------------------------------------------------- /Student/Debug/DeleteStudent.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/DeleteStudent.obj -------------------------------------------------------------------------------- /Student/Debug/Public.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/Public.obj -------------------------------------------------------------------------------- /Student/Debug/QuerryCourse.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/QuerryCourse.obj -------------------------------------------------------------------------------- /Student/Debug/QueryStudent.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/QueryStudent.obj -------------------------------------------------------------------------------- /Student/Debug/SelectionClass.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/SelectionClass.obj -------------------------------------------------------------------------------- /Student/Debug/SelectionManagement.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/SelectionManagement.obj -------------------------------------------------------------------------------- /Student/Debug/SetSelection.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/SetSelection.obj -------------------------------------------------------------------------------- /Student/Debug/Student.Build.CppClean.log: -------------------------------------------------------------------------------- 1 | c:\users\think\desktop\student\student\debug\student.pch 2 | c:\users\think\desktop\student\student\debug\vc140.pdb 3 | c:\users\think\desktop\student\student\debug\vc140.idb 4 | c:\users\think\desktop\student\student\debug\stdafx.obj 5 | c:\users\think\desktop\student\student\debug\maincontrol.obj 6 | c:\users\think\desktop\student\student\debug\addcourse.obj 7 | c:\users\think\desktop\student\student\debug\addstudent.obj 8 | c:\users\think\desktop\student\student\debug\cancelselection.obj 9 | c:\users\think\desktop\student\student\debug\courseclass.obj 10 | c:\users\think\desktop\student\student\debug\coursemanagement.obj 11 | c:\users\think\desktop\student\student\debug\coursesave.obj 12 | c:\users\think\desktop\student\student\debug\deletecourse.obj 13 | c:\users\think\desktop\student\student\debug\deletestudent.obj 14 | c:\users\think\desktop\student\student\debug\public.obj 15 | c:\users\think\desktop\student\student\debug\querrycourse.obj 16 | c:\users\think\desktop\student\student\debug\querystudent.obj 17 | c:\users\think\desktop\student\student\debug\selectionclass.obj 18 | c:\users\think\desktop\student\student\debug\selectionmanagement.obj 19 | c:\users\think\desktop\student\student\debug\setselection.obj 20 | c:\users\think\desktop\student\student\debug\student.obj 21 | c:\users\think\desktop\student\student\debug\studentclass.obj 22 | c:\users\think\desktop\student\student\debug\studentdlg.obj 23 | c:\users\think\desktop\student\student\debug\studentmanagement.obj 24 | c:\users\think\desktop\student\student\debug\studentsave.obj 25 | c:\users\think\desktop\student\debug\student.ilk 26 | c:\users\think\desktop\student\debug\student.exe 27 | c:\users\think\desktop\student\debug\student.pdb 28 | c:\users\think\desktop\student\student\debug\student.res 29 | c:\users\think\desktop\student\student\debug\student.tlog\cl.command.1.tlog 30 | c:\users\think\desktop\student\student\debug\student.tlog\cl.read.1.tlog 31 | c:\users\think\desktop\student\student\debug\student.tlog\cl.write.1.tlog 32 | c:\users\think\desktop\student\student\debug\student.tlog\link.command.1.tlog 33 | c:\users\think\desktop\student\student\debug\student.tlog\link.read.1.tlog 34 | c:\users\think\desktop\student\student\debug\student.tlog\link.write.1.tlog 35 | c:\users\think\desktop\student\student\debug\student.tlog\rc.command.1.tlog 36 | c:\users\think\desktop\student\student\debug\student.tlog\rc.read.1.tlog 37 | c:\users\think\desktop\student\student\debug\student.tlog\rc.write.1.tlog 38 | -------------------------------------------------------------------------------- /Student/Debug/Student.log: -------------------------------------------------------------------------------- 1 |  StudentSave.cpp 2 | c:\users\think\desktop\github\student\student\student\resource.h(26): warning C4005: 'IDCANCEL': macro redefinition 3 | c:\program files (x86)\windows kits\8.1\include\um\winuser.h(10565): note: see previous definition of 'IDCANCEL' 4 | StudentManagement.cpp 5 | c:\users\think\desktop\github\student\student\student\resource.h(26): warning C4005: 'IDCANCEL': macro redefinition 6 | c:\program files (x86)\windows kits\8.1\include\um\winuser.h(10565): note: see previous definition of 'IDCANCEL' 7 | StudentDlg.cpp 8 | c:\users\think\desktop\github\student\student\student\resource.h(26): warning C4005: 'IDCANCEL': macro redefinition 9 | c:\program files (x86)\windows kits\8.1\include\um\winuser.h(10565): note: see previous definition of 'IDCANCEL' 10 | StudentClass.cpp 11 | Student.cpp 12 | c:\users\think\desktop\github\student\student\student\resource.h(26): warning C4005: 'IDCANCEL': macro redefinition 13 | c:\program files (x86)\windows kits\8.1\include\um\winuser.h(10565): note: see previous definition of 'IDCANCEL' 14 | SetSelection.cpp 15 | c:\users\think\desktop\github\student\student\student\resource.h(26): warning C4005: 'IDCANCEL': macro redefinition 16 | c:\program files (x86)\windows kits\8.1\include\um\winuser.h(10565): note: see previous definition of 'IDCANCEL' 17 | SelectionManagement.cpp 18 | c:\users\think\desktop\github\student\student\student\resource.h(26): warning C4005: 'IDCANCEL': macro redefinition 19 | c:\program files (x86)\windows kits\8.1\include\um\winuser.h(10565): note: see previous definition of 'IDCANCEL' 20 | SelectionClass.cpp 21 | QueryStudent.cpp 22 | c:\users\think\desktop\github\student\student\student\resource.h(26): warning C4005: 'IDCANCEL': macro redefinition 23 | c:\program files (x86)\windows kits\8.1\include\um\winuser.h(10565): note: see previous definition of 'IDCANCEL' 24 | QuerryCourse.cpp 25 | c:\users\think\desktop\github\student\student\student\resource.h(26): warning C4005: 'IDCANCEL': macro redefinition 26 | c:\program files (x86)\windows kits\8.1\include\um\winuser.h(10565): note: see previous definition of 'IDCANCEL' 27 | Public.cpp 28 | DeleteStudent.cpp 29 | c:\users\think\desktop\github\student\student\student\resource.h(26): warning C4005: 'IDCANCEL': macro redefinition 30 | c:\program files (x86)\windows kits\8.1\include\um\winuser.h(10565): note: see previous definition of 'IDCANCEL' 31 | DeleteCourse.cpp 32 | c:\users\think\desktop\github\student\student\student\resource.h(26): warning C4005: 'IDCANCEL': macro redefinition 33 | c:\program files (x86)\windows kits\8.1\include\um\winuser.h(10565): note: see previous definition of 'IDCANCEL' 34 | CourseSave.cpp 35 | c:\users\think\desktop\github\student\student\student\resource.h(26): warning C4005: 'IDCANCEL': macro redefinition 36 | c:\program files (x86)\windows kits\8.1\include\um\winuser.h(10565): note: see previous definition of 'IDCANCEL' 37 | CourseManagement.cpp 38 | c:\users\think\desktop\github\student\student\student\resource.h(26): warning C4005: 'IDCANCEL': macro redefinition 39 | c:\program files (x86)\windows kits\8.1\include\um\winuser.h(10565): note: see previous definition of 'IDCANCEL' 40 | CourseClass.cpp 41 | CancelSelection.cpp 42 | c:\users\think\desktop\github\student\student\student\resource.h(26): warning C4005: 'IDCANCEL': macro redefinition 43 | c:\program files (x86)\windows kits\8.1\include\um\winuser.h(10565): note: see previous definition of 'IDCANCEL' 44 | AddStudent.cpp 45 | c:\users\think\desktop\github\student\student\student\resource.h(26): warning C4005: 'IDCANCEL': macro redefinition 46 | c:\program files (x86)\windows kits\8.1\include\um\winuser.h(10565): note: see previous definition of 'IDCANCEL' 47 | AddCourse.cpp 48 | c:\users\think\desktop\github\student\student\student\resource.h(26): warning C4005: 'IDCANCEL': macro redefinition 49 | c:\program files (x86)\windows kits\8.1\include\um\winuser.h(10565): note: see previous definition of 'IDCANCEL' 50 | Generating Code... 51 | C:\Program Files (x86)\Windows Kits\8.1\Include\um\winuser.rh(1365): warning RC4005: 'IDCANCEL' : redefinition 52 | 53 | Student.vcxproj -> C:\Users\Think\Desktop\github\Student\Student\Debug\Student.exe 54 | -------------------------------------------------------------------------------- /Student/Debug/Student.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/Student.obj -------------------------------------------------------------------------------- /Student/Debug/Student.pch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/Student.pch -------------------------------------------------------------------------------- /Student/Debug/Student.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/Student.res -------------------------------------------------------------------------------- /Student/Debug/Student.tlog/CL.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/Student.tlog/CL.command.1.tlog -------------------------------------------------------------------------------- /Student/Debug/Student.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/Student.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /Student/Debug/Student.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/Student.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /Student/Debug/Student.tlog/Student.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=8.1 2 | Debug|Win32|C:\Users\Think\Desktop\github\Student\Student\| 3 | -------------------------------------------------------------------------------- /Student/Debug/Student.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/Student.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /Student/Debug/Student.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/Student.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /Student/Debug/Student.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/Student.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /Student/Debug/Student.tlog/rc.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/Student.tlog/rc.command.1.tlog -------------------------------------------------------------------------------- /Student/Debug/Student.tlog/rc.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/Student.tlog/rc.read.1.tlog -------------------------------------------------------------------------------- /Student/Debug/Student.tlog/rc.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/Student.tlog/rc.write.1.tlog -------------------------------------------------------------------------------- /Student/Debug/StudentClass.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/StudentClass.obj -------------------------------------------------------------------------------- /Student/Debug/StudentDlg.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/StudentDlg.obj -------------------------------------------------------------------------------- /Student/Debug/StudentManagement.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/StudentManagement.obj -------------------------------------------------------------------------------- /Student/Debug/StudentSave.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/StudentSave.obj -------------------------------------------------------------------------------- /Student/Debug/mainControl.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/mainControl.obj -------------------------------------------------------------------------------- /Student/Debug/stdafx.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/stdafx.obj -------------------------------------------------------------------------------- /Student/Debug/vc140.idb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/vc140.idb -------------------------------------------------------------------------------- /Student/Debug/vc140.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Debug/vc140.pdb -------------------------------------------------------------------------------- /Student/DeleteCourse.cpp: -------------------------------------------------------------------------------- 1 | // DeleteCourse.cpp : implementation file 2 | // 3 | 4 | #include "stdafx.h" 5 | #include "Student.h" 6 | #include "DeleteCourse.h" 7 | #include "afxdialogex.h" 8 | 9 | 10 | // CDeleteCourse dialog 11 | 12 | IMPLEMENT_DYNAMIC(CDeleteCourse, CDialogEx) 13 | 14 | CDeleteCourse::CDeleteCourse(CWnd* pParent /*=NULL*/) 15 | : CDialogEx(IDD_DIALOG7, pParent) 16 | { 17 | 18 | } 19 | 20 | CDeleteCourse::~CDeleteCourse() 21 | { 22 | } 23 | 24 | void CDeleteCourse::DoDataExchange(CDataExchange* pDX) 25 | { 26 | CDialogEx::DoDataExchange(pDX); 27 | DDX_Control(pDX, IDC_EDIT1, getName); 28 | } 29 | 30 | 31 | BEGIN_MESSAGE_MAP(CDeleteCourse, CDialogEx) 32 | ON_BN_CLICKED(IDOK, &CDeleteCourse::OnBnClickedOk) 33 | END_MESSAGE_MAP() 34 | 35 | 36 | // CDeleteCourse message handlers 37 | 38 | 39 | void CDeleteCourse::OnBnClickedOk() 40 | { 41 | // TODO: Add your control notification handler code here 42 | CDialogEx::OnOK(); 43 | CString name; 44 | getName.GetWindowTextW(name); 45 | USES_CONVERSION; 46 | string theName(W2A(name)); 47 | CPublic::mc.deleteCourse(theName); 48 | } 49 | -------------------------------------------------------------------------------- /Student/DeleteCourse.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | 4 | 5 | // CDeleteCourse dialog 6 | 7 | class CDeleteCourse : public CDialogEx 8 | { 9 | DECLARE_DYNAMIC(CDeleteCourse) 10 | 11 | public: 12 | CDeleteCourse(CWnd* pParent = NULL); // standard constructor 13 | virtual ~CDeleteCourse(); 14 | 15 | // Dialog Data 16 | #ifdef AFX_DESIGN_TIME 17 | enum { IDD = IDD_DIALOG7 }; 18 | #endif 19 | 20 | protected: 21 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 22 | 23 | DECLARE_MESSAGE_MAP() 24 | public: 25 | CEdit getName; 26 | afx_msg void OnBnClickedOk(); 27 | }; 28 | -------------------------------------------------------------------------------- /Student/DeleteStudent.cpp: -------------------------------------------------------------------------------- 1 | // DeleteStudent.cpp : implementation file 2 | // 3 | 4 | #include "stdafx.h" 5 | #include "Student.h" 6 | #include "DeleteStudent.h" 7 | #include "afxdialogex.h" 8 | 9 | 10 | // CDeleteStudent dialog 11 | 12 | IMPLEMENT_DYNAMIC(CDeleteStudent, CDialogEx) 13 | 14 | CDeleteStudent::CDeleteStudent(CWnd* pParent /*=NULL*/) 15 | : CDialogEx(IDD_DIALOG3, pParent) 16 | { 17 | 18 | } 19 | 20 | CDeleteStudent::~CDeleteStudent() 21 | { 22 | } 23 | 24 | void CDeleteStudent::DoDataExchange(CDataExchange* pDX) 25 | { 26 | CDialogEx::DoDataExchange(pDX); 27 | DDX_Control(pDX, IDC_EDIT1, getID); 28 | } 29 | 30 | 31 | BEGIN_MESSAGE_MAP(CDeleteStudent, CDialogEx) 32 | ON_BN_CLICKED(IDOK, &CDeleteStudent::OnBnClickedOk) 33 | END_MESSAGE_MAP() 34 | 35 | 36 | // CDeleteStudent message handlers 37 | 38 | 39 | void CDeleteStudent::OnBnClickedOk() 40 | { 41 | // TODO: Add your control notification handler code here 42 | CDialogEx::OnOK(); 43 | CString id; 44 | getID.GetWindowTextW(id); 45 | long int theID = _ttoi(id); 46 | 47 | CPublic::mc.deleteStudent(theID); 48 | } 49 | -------------------------------------------------------------------------------- /Student/DeleteStudent.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | 4 | 5 | // CDeleteStudent dialog 6 | 7 | class CDeleteStudent : public CDialogEx 8 | { 9 | DECLARE_DYNAMIC(CDeleteStudent) 10 | 11 | public: 12 | CDeleteStudent(CWnd* pParent = NULL); // standard constructor 13 | virtual ~CDeleteStudent(); 14 | 15 | // Dialog Data 16 | #ifdef AFX_DESIGN_TIME 17 | enum { IDD = IDD_DIALOG3 }; 18 | #endif 19 | 20 | protected: 21 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 22 | 23 | DECLARE_MESSAGE_MAP() 24 | public: 25 | CEdit getID; 26 | afx_msg void OnBnClickedOk(); 27 | }; 28 | -------------------------------------------------------------------------------- /Student/Public.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | #include "Public.h" 3 | 4 | 5 | MainControl CPublic::mc; -------------------------------------------------------------------------------- /Student/Public.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "mainControl.h" 3 | 4 | class CPublic { 5 | public: 6 | static MainControl mc; 7 | }; -------------------------------------------------------------------------------- /Student/QuerryCourse.cpp: -------------------------------------------------------------------------------- 1 | // QuerryCourse.cpp : implementation file 2 | // 3 | 4 | #include "stdafx.h" 5 | #include "Student.h" 6 | #include "QuerryCourse.h" 7 | #include "afxdialogex.h" 8 | 9 | 10 | // CQuerryCourse dialog 11 | 12 | IMPLEMENT_DYNAMIC(CQuerryCourse, CDialogEx) 13 | 14 | CQuerryCourse::CQuerryCourse(CWnd* pParent /*=NULL*/) 15 | : CDialogEx(IDD_DIALOG13, pParent) 16 | { 17 | 18 | } 19 | 20 | CQuerryCourse::~CQuerryCourse() 21 | { 22 | } 23 | 24 | void CQuerryCourse::DoDataExchange(CDataExchange* pDX) 25 | { 26 | CDialogEx::DoDataExchange(pDX); 27 | DDX_Control(pDX, IDC_EDIT1, getName); 28 | } 29 | 30 | 31 | BEGIN_MESSAGE_MAP(CQuerryCourse, CDialogEx) 32 | ON_BN_CLICKED(IDC_BUTTON2, &CQuerryCourse::OnBnClickedButton2) 33 | END_MESSAGE_MAP() 34 | 35 | 36 | // CQuerryCourse message handlers 37 | 38 | 39 | void CQuerryCourse::OnBnClickedButton2() 40 | { 41 | // TODO: Add your control notification handler code here 42 | CString name; 43 | getName.GetWindowTextW(name); 44 | USES_CONVERSION; 45 | string theName(W2A(name)); 46 | 47 | string result = CPublic::mc.queryCourse(theName); 48 | CString Cresult(result.c_str()); 49 | SetDlgItemText(IDC_EDIT2, Cresult); 50 | } 51 | -------------------------------------------------------------------------------- /Student/QuerryCourse.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | 4 | 5 | // CQuerryCourse dialog 6 | 7 | class CQuerryCourse : public CDialogEx 8 | { 9 | DECLARE_DYNAMIC(CQuerryCourse) 10 | 11 | public: 12 | CQuerryCourse(CWnd* pParent = NULL); // standard constructor 13 | virtual ~CQuerryCourse(); 14 | 15 | // Dialog Data 16 | #ifdef AFX_DESIGN_TIME 17 | enum { IDD = IDD_DIALOG13 }; 18 | #endif 19 | 20 | protected: 21 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 22 | 23 | DECLARE_MESSAGE_MAP() 24 | public: 25 | afx_msg void OnBnClickedButton2(); 26 | CEdit getName; 27 | }; 28 | -------------------------------------------------------------------------------- /Student/QueryStudent.cpp: -------------------------------------------------------------------------------- 1 | // QueryStudent.cpp : implementation file 2 | // 3 | 4 | #include "stdafx.h" 5 | #include "Student.h" 6 | #include "QueryStudent.h" 7 | #include "afxdialogex.h" 8 | 9 | 10 | // CQueryStudent dialog 11 | 12 | IMPLEMENT_DYNAMIC(CQueryStudent, CDialogEx) 13 | 14 | CQueryStudent::CQueryStudent(CWnd* pParent /*=NULL*/) 15 | : CDialogEx(IDD_DIALOG12, pParent) 16 | { 17 | 18 | } 19 | 20 | CQueryStudent::~CQueryStudent() 21 | { 22 | } 23 | 24 | void CQueryStudent::DoDataExchange(CDataExchange* pDX) 25 | { 26 | CDialogEx::DoDataExchange(pDX); 27 | DDX_Control(pDX, IDC_EDIT1, getID); 28 | DDX_Control(pDX, IDC_EDIT2, output); 29 | } 30 | 31 | 32 | BEGIN_MESSAGE_MAP(CQueryStudent, CDialogEx) 33 | // ON_BN_CLICKED(IDOK, &CQueryStudent::OnBnClickedOk) 34 | //ON_BN_CLICKED(IDCANCEL2, &CQueryStudent::OnBnClickedCancel2) 35 | ON_BN_CLICKED(IDC_BUTTON2, &CQueryStudent::OnBnClickedButton2) 36 | END_MESSAGE_MAP() 37 | 38 | 39 | // CQueryStudent message handlers 40 | 41 | 42 | //void CQueryStudent::OnBnClickedOk() 43 | //{ 44 | // // TODO: Add your control notification handler code here 45 | // CDialogEx::OnOK(); 46 | // CString id; 47 | // getID.GetWindowTextW(id); 48 | // long int theID = _ttoi(id); 49 | // 50 | // string result = CPublic::mc.queryStudent(theID); 51 | // CString Cresult(result.c_str()); 52 | // SetDlgItemText(IDC_EDIT2, Cresult); 53 | //} 54 | 55 | 56 | //void CQueryStudent::OnBnClickedCancel2() 57 | //{ 58 | // // TODO: Add your control notification handler code here 59 | // CString id; 60 | // getID.GetWindowTextW(id); 61 | // long int theID = _ttoi(id); 62 | // 63 | // string result = CPublic::mc.queryStudent(theID); 64 | // CString Cresult(result.c_str()); 65 | // SetDlgItemText(IDC_EDIT2, Cresult); 66 | //} 67 | 68 | 69 | void CQueryStudent::OnBnClickedButton2() 70 | { 71 | // TODO: Add your control notification handler code here 72 | CString id; 73 | getID.GetWindowTextW(id); 74 | long int theID = _ttoi(id); 75 | 76 | string result = CPublic::mc.queryStudent(theID); 77 | CString Cresult(result.c_str()); 78 | SetDlgItemText(IDC_EDIT2, Cresult); 79 | } 80 | -------------------------------------------------------------------------------- /Student/QueryStudent.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | 4 | 5 | // CQueryStudent dialog 6 | 7 | class CQueryStudent : public CDialogEx 8 | { 9 | DECLARE_DYNAMIC(CQueryStudent) 10 | 11 | public: 12 | CQueryStudent(CWnd* pParent = NULL); // standard constructor 13 | virtual ~CQueryStudent(); 14 | 15 | // Dialog Data 16 | #ifdef AFX_DESIGN_TIME 17 | enum { IDD = IDD_DIALOG12 }; 18 | #endif 19 | 20 | protected: 21 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 22 | 23 | DECLARE_MESSAGE_MAP() 24 | public: 25 | // afx_msg void OnBnClickedOk(); 26 | CEdit getID; 27 | CEdit output; 28 | // afx_msg void OnBnClickedCancel2(); 29 | afx_msg void OnBnClickedButton2(); 30 | }; 31 | -------------------------------------------------------------------------------- /Student/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ================================================================================ 2 | MICROSOFT FOUNDATION CLASS LIBRARY : Student Project Overview 3 | =============================================================================== 4 | 5 | The application wizard has created this Student application for 6 | you. This application not only demonstrates the basics of using the Microsoft 7 | Foundation Classes but is also a starting point for writing your application. 8 | 9 | This file contains a summary of what you will find in each of the files that 10 | make up your Student application. 11 | 12 | Student.vcxproj 13 | This is the main project file for VC++ projects generated using an application wizard. 14 | It contains information about the version of Visual C++ that generated the file, and 15 | information about the platforms, configurations, and project features selected with the 16 | application wizard. 17 | 18 | Student.vcxproj.filters 19 | This is the filters file for VC++ projects generated using an Application Wizard. 20 | It contains information about the assciation between the files in your project 21 | and the filters. This association is used in the IDE to show grouping of files with 22 | similar extensions under a specific node (for e.g. ".cpp" files are associated with the 23 | "Source Files" filter). 24 | 25 | Student.h 26 | This is the main header file for the application. It includes other 27 | project specific headers (including Resource.h) and declares the 28 | CStudentApp application class. 29 | 30 | Student.cpp 31 | This is the main application source file that contains the application 32 | class CStudentApp. 33 | 34 | Student.rc 35 | This is a listing of all of the Microsoft Windows resources that the 36 | program uses. It includes the icons, bitmaps, and cursors that are stored 37 | in the RES subdirectory. This file can be directly edited in Microsoft 38 | Visual C++. Your project resources are in 1033. 39 | 40 | res\Student.ico 41 | This is an icon file, which is used as the application's icon. This 42 | icon is included by the main resource file Student.rc. 43 | 44 | res\Student.rc2 45 | This file contains resources that are not edited by Microsoft 46 | Visual C++. You should place all resources not editable by 47 | the resource editor in this file. 48 | 49 | 50 | ///////////////////////////////////////////////////////////////////////////// 51 | 52 | The application wizard creates one dialog class: 53 | 54 | StudentDlg.h, StudentDlg.cpp - the dialog 55 | These files contain your CStudentDlg class. This class defines 56 | the behavior of your application's main dialog. The dialog's template is 57 | in Student.rc, which can be edited in Microsoft Visual C++. 58 | 59 | ///////////////////////////////////////////////////////////////////////////// 60 | 61 | Help Support: 62 | 63 | hlp\Student.hhp 64 | This file is a help project file. It contains the data needed to 65 | compile the help files into a .chm file. 66 | 67 | hlp\Student.hhc 68 | This file lists the contents of the help project. 69 | 70 | hlp\Student.hhk 71 | This file contains an index of the help topics. 72 | 73 | hlp\afxcore.htm 74 | This file contains the standard help topics for standard MFC 75 | commands and screen objects. Add your own help topics to this file. 76 | 77 | hlp\afxprint.htm 78 | This file contains the help topics for the printing commands. 79 | 80 | makehtmlhelp.bat 81 | This file is used by the build system to compile the help files. 82 | 83 | hlp\Images\*.gif 84 | These are bitmap files required by the standard help file topics for 85 | Microsoft Foundation Class Library standard commands. 86 | 87 | 88 | ///////////////////////////////////////////////////////////////////////////// 89 | 90 | Other Features: 91 | 92 | ActiveX Controls 93 | The application includes support to use ActiveX controls. 94 | 95 | Printing and Print Preview support 96 | The application wizard has generated code to handle the print, print setup, and print preview 97 | commands by calling member functions in the CView class from the MFC library. 98 | 99 | ///////////////////////////////////////////////////////////////////////////// 100 | 101 | Other standard files: 102 | 103 | StdAfx.h, StdAfx.cpp 104 | These files are used to build a precompiled header (PCH) file 105 | named Student.pch and a precompiled types file named StdAfx.obj. 106 | 107 | Resource.h 108 | This is the standard header file, which defines new resource IDs. 109 | Microsoft Visual C++ reads and updates this file. 110 | 111 | Student.manifest 112 | Application manifest files are used by Windows XP to describe an applications 113 | dependency on specific versions of Side-by-Side assemblies. The loader uses this 114 | information to load the appropriate assembly from the assembly cache or private 115 | from the application. The Application manifest maybe included for redistribution 116 | as an external .manifest file that is installed in the same folder as the application 117 | executable or it may be included in the executable in the form of a resource. 118 | ///////////////////////////////////////////////////////////////////////////// 119 | 120 | Other notes: 121 | 122 | The application wizard uses "TODO:" to indicate parts of the source code you 123 | should add to or customize. 124 | 125 | If your application uses MFC in a shared DLL, you will need 126 | to redistribute the MFC DLLs. If your application is in a language 127 | other than the operating system's locale, you will also have to 128 | redistribute the corresponding localized resources MFC100XXX.DLL. 129 | For more information on both of these topics, please see the section on 130 | redistributing Visual C++ applications in MSDN documentation. 131 | 132 | ///////////////////////////////////////////////////////////////////////////// 133 | -------------------------------------------------------------------------------- /Student/SelectionClass.cpp: -------------------------------------------------------------------------------- 1 | #pragma 2 | #include "stdafx.h" 3 | #include "SelectionClass.h" 4 | 5 | 6 | 7 | Selection::Selection(long int no, string name) :Student(no, name) {} 8 | 9 | void Selection::addCourse(int credit, string name) { 10 | Course course(credit, name); 11 | this->course.push_back(course); 12 | } 13 | 14 | void Selection::deleteCourse(string name) { 15 | list::iterator iter; 16 | for (iter = course.begin(); iter != course.end();) 17 | if (iter->getName() == name) { 18 | course.erase(iter); 19 | break; 20 | } 21 | else 22 | iter++; 23 | } 24 | 25 | list Selection::getCourse() { 26 | return course; 27 | } 28 | 29 | bool Selection::hasCourse(string name) { 30 | list::iterator iter; 31 | for (iter = course.begin(); iter != course.end();) 32 | if (iter->getName() == name) 33 | return true; 34 | else 35 | iter++; 36 | return false; 37 | } -------------------------------------------------------------------------------- /Student/SelectionClass.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/SelectionClass.h -------------------------------------------------------------------------------- /Student/SelectionManagement.cpp: -------------------------------------------------------------------------------- 1 | // SelectionManagement.cpp : implementation file 2 | // 3 | 4 | #include "stdafx.h" 5 | #include "Student.h" 6 | #include "SelectionManagement.h" 7 | #include "afxdialogex.h" 8 | #include "SetSelection.h" 9 | #include "CancelSelection.h" 10 | #include "QueryStudent.h" 11 | #include "QuerryCourse.h" 12 | 13 | // CSelectionManagement dialog 14 | 15 | IMPLEMENT_DYNAMIC(CSelectionManagement, CDialogEx) 16 | 17 | CSelectionManagement::CSelectionManagement(CWnd* pParent /*=NULL*/) 18 | : CDialogEx(IDD_DIALOG9, pParent) 19 | { 20 | 21 | } 22 | 23 | CSelectionManagement::~CSelectionManagement() 24 | { 25 | } 26 | 27 | void CSelectionManagement::DoDataExchange(CDataExchange* pDX) 28 | { 29 | CDialogEx::DoDataExchange(pDX); 30 | } 31 | 32 | 33 | BEGIN_MESSAGE_MAP(CSelectionManagement, CDialogEx) 34 | ON_BN_CLICKED(IDC_BUTTON1, &CSelectionManagement::OnBnClickedButton1) 35 | ON_BN_CLICKED(IDC_BUTTON3, &CSelectionManagement::OnBnClickedButton3) 36 | ON_BN_CLICKED(IDC_BUTTON6, &CSelectionManagement::OnBnClickedButton6) 37 | ON_BN_CLICKED(IDC_BUTTON7, &CSelectionManagement::OnBnClickedButton7) 38 | END_MESSAGE_MAP() 39 | 40 | 41 | // CSelectionManagement message handlers 42 | 43 | 44 | void CSelectionManagement::OnBnClickedButton1() 45 | { 46 | // TODO: Add your control notification handler code here 47 | CSetSelection dlg; 48 | dlg.DoModal(); 49 | } 50 | 51 | 52 | void CSelectionManagement::OnBnClickedButton3() 53 | { 54 | // TODO: Add your control notification handler code here 55 | CCancelSelection dlg; 56 | dlg.DoModal(); 57 | } 58 | 59 | 60 | void CSelectionManagement::OnBnClickedButton6() 61 | { 62 | // TODO: Add your control notification handler code here 63 | CQueryStudent dlg; 64 | dlg.DoModal(); 65 | } 66 | 67 | 68 | void CSelectionManagement::OnBnClickedButton7() 69 | { 70 | // TODO: Add your control notification handler code here 71 | CQuerryCourse dlg; 72 | dlg.DoModal(); 73 | } 74 | -------------------------------------------------------------------------------- /Student/SelectionManagement.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | 4 | // CSelectionManagement dialog 5 | 6 | class CSelectionManagement : public CDialogEx 7 | { 8 | DECLARE_DYNAMIC(CSelectionManagement) 9 | 10 | public: 11 | CSelectionManagement(CWnd* pParent = NULL); // standard constructor 12 | virtual ~CSelectionManagement(); 13 | 14 | // Dialog Data 15 | #ifdef AFX_DESIGN_TIME 16 | enum { IDD = IDD_DIALOG9 }; 17 | #endif 18 | 19 | protected: 20 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 21 | 22 | DECLARE_MESSAGE_MAP() 23 | public: 24 | afx_msg void OnBnClickedButton1(); 25 | afx_msg void OnBnClickedButton3(); 26 | afx_msg void OnBnClickedButton6(); 27 | afx_msg void OnBnClickedButton7(); 28 | }; 29 | -------------------------------------------------------------------------------- /Student/SetSelection.cpp: -------------------------------------------------------------------------------- 1 | // SetSelection.cpp : implementation file 2 | // 3 | 4 | #include "stdafx.h" 5 | #include "Student.h" 6 | #include "SetSelection.h" 7 | #include "afxdialogex.h" 8 | 9 | 10 | // CSetSelection dialog 11 | 12 | IMPLEMENT_DYNAMIC(CSetSelection, CDialogEx) 13 | 14 | CSetSelection::CSetSelection(CWnd* pParent /*=NULL*/) 15 | : CDialogEx(IDD_DIALOG10, pParent) 16 | { 17 | 18 | } 19 | 20 | CSetSelection::~CSetSelection() 21 | { 22 | } 23 | 24 | void CSetSelection::DoDataExchange(CDataExchange* pDX) 25 | { 26 | CDialogEx::DoDataExchange(pDX); 27 | DDX_Control(pDX, IDC_EDIT1, getID); 28 | DDX_Control(pDX, IDC_EDIT2, getName); 29 | } 30 | 31 | 32 | BEGIN_MESSAGE_MAP(CSetSelection, CDialogEx) 33 | ON_BN_CLICKED(IDOK, &CSetSelection::OnBnClickedOk) 34 | END_MESSAGE_MAP() 35 | 36 | 37 | // CSetSelection message handlers 38 | 39 | 40 | void CSetSelection::OnBnClickedOk() 41 | { 42 | // TODO: Add your control notification handler code here 43 | CDialogEx::OnOK(); 44 | CString id; 45 | getID.GetWindowTextW(id); 46 | long int theID = _ttoi(id); 47 | 48 | CString name; 49 | getName.GetWindowTextW(name); 50 | USES_CONVERSION; 51 | string theName(W2A(name)); 52 | 53 | CPublic::mc.setSelection(theID, theName); 54 | } 55 | -------------------------------------------------------------------------------- /Student/SetSelection.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | 4 | 5 | // CSetSelection dialog 6 | 7 | class CSetSelection : public CDialogEx 8 | { 9 | DECLARE_DYNAMIC(CSetSelection) 10 | 11 | public: 12 | CSetSelection(CWnd* pParent = NULL); // standard constructor 13 | virtual ~CSetSelection(); 14 | 15 | // Dialog Data 16 | #ifdef AFX_DESIGN_TIME 17 | enum { IDD = IDD_DIALOG10 }; 18 | #endif 19 | 20 | protected: 21 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 22 | 23 | DECLARE_MESSAGE_MAP() 24 | public: 25 | CEdit getID; 26 | CEdit getName; 27 | afx_msg void OnBnClickedOk(); 28 | }; 29 | -------------------------------------------------------------------------------- /Student/Student.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Student.aps -------------------------------------------------------------------------------- /Student/Student.cpp: -------------------------------------------------------------------------------- 1 | 2 | // Student.cpp : Defines the class behaviors for the application. 3 | // 4 | 5 | #include "stdafx.h" 6 | #include "Student.h" 7 | #include "StudentDlg.h" 8 | 9 | #ifdef _DEBUG 10 | #define new DEBUG_NEW 11 | #endif 12 | 13 | 14 | // CStudentApp 15 | 16 | BEGIN_MESSAGE_MAP(CStudentApp, CWinApp) 17 | ON_COMMAND(ID_HELP, &CWinApp::OnHelp) 18 | END_MESSAGE_MAP() 19 | 20 | 21 | // CStudentApp construction 22 | 23 | CStudentApp::CStudentApp() 24 | { 25 | // support Restart Manager 26 | m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART; 27 | 28 | // TODO: add construction code here, 29 | // Place all significant initialization in InitInstance 30 | } 31 | 32 | 33 | // The one and only CStudentApp object 34 | 35 | CStudentApp theApp; 36 | 37 | 38 | // CStudentApp initialization 39 | 40 | BOOL CStudentApp::InitInstance() 41 | { 42 | // InitCommonControlsEx() is required on Windows XP if an application 43 | // manifest specifies use of ComCtl32.dll version 6 or later to enable 44 | // visual styles. Otherwise, any window creation will fail. 45 | INITCOMMONCONTROLSEX InitCtrls; 46 | InitCtrls.dwSize = sizeof(InitCtrls); 47 | // Set this to include all the common control classes you want to use 48 | // in your application. 49 | InitCtrls.dwICC = ICC_WIN95_CLASSES; 50 | InitCommonControlsEx(&InitCtrls); 51 | 52 | CWinApp::InitInstance(); 53 | 54 | 55 | AfxEnableControlContainer(); 56 | 57 | // Create the shell manager, in case the dialog contains 58 | // any shell tree view or shell list view controls. 59 | CShellManager *pShellManager = new CShellManager; 60 | 61 | // Activate "Windows Native" visual manager for enabling themes in MFC controls 62 | CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerWindows)); 63 | 64 | // Standard initialization 65 | // If you are not using these features and wish to reduce the size 66 | // of your final executable, you should remove from the following 67 | // the specific initialization routines you do not need 68 | // Change the registry key under which our settings are stored 69 | // TODO: You should modify this string to be something appropriate 70 | // such as the name of your company or organization 71 | SetRegistryKey(_T("Local AppWizard-Generated Applications")); 72 | 73 | CStudentDlg dlg; 74 | m_pMainWnd = &dlg; 75 | INT_PTR nResponse = dlg.DoModal(); 76 | if (nResponse == IDOK) 77 | { 78 | // TODO: Place code here to handle when the dialog is 79 | // dismissed with OK 80 | } 81 | else if (nResponse == IDCANCEL) 82 | { 83 | // TODO: Place code here to handle when the dialog is 84 | // dismissed with Cancel 85 | } 86 | else if (nResponse == -1) 87 | { 88 | TRACE(traceAppMsg, 0, "Warning: dialog creation failed, so application is terminating unexpectedly.\n"); 89 | TRACE(traceAppMsg, 0, "Warning: if you are using MFC controls on the dialog, you cannot #define _AFX_NO_MFC_CONTROLS_IN_DIALOGS.\n"); 90 | } 91 | 92 | // Delete the shell manager created above. 93 | if (pShellManager != NULL) 94 | { 95 | delete pShellManager; 96 | } 97 | 98 | // Since the dialog has been closed, return FALSE so that we exit the 99 | // application, rather than start the application's message pump. 100 | return FALSE; 101 | } 102 | 103 | -------------------------------------------------------------------------------- /Student/Student.h: -------------------------------------------------------------------------------- 1 | 2 | // Student.h : main header file for the PROJECT_NAME application 3 | // 4 | 5 | #pragma once 6 | 7 | 8 | #ifndef __AFXWIN_H__ 9 | #error "include 'stdafx.h' before including this file for PCH" 10 | #endif 11 | 12 | #include "resource.h" // main symbols 13 | #include "Public.h" 14 | 15 | // CStudentApp: 16 | // See Student.cpp for the implementation of this class 17 | // 18 | 19 | class CStudentApp : public CWinApp 20 | { 21 | public: 22 | CStudentApp(); 23 | 24 | // Overridse 25 | public: 26 | virtual BOOL InitInstance(); 27 | 28 | 29 | // Implementation 30 | 31 | DECLARE_MESSAGE_MAP() 32 | 33 | 34 | }; 35 | 36 | extern CStudentApp theApp; -------------------------------------------------------------------------------- /Student/Student.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/Student.rc -------------------------------------------------------------------------------- /Student/Student.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | {3B6B5AC0-963B-4754-A8D2-884383B74E27} 23 | Student 24 | 8.1 25 | MFCProj 26 | 27 | 28 | 29 | Application 30 | true 31 | v140 32 | Unicode 33 | Dynamic 34 | 35 | 36 | Application 37 | false 38 | v140 39 | true 40 | Unicode 41 | Dynamic 42 | 43 | 44 | Application 45 | true 46 | v140 47 | Unicode 48 | Dynamic 49 | 50 | 51 | Application 52 | false 53 | v140 54 | true 55 | Unicode 56 | Dynamic 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | true 78 | 79 | 80 | true 81 | 82 | 83 | false 84 | 85 | 86 | false 87 | 88 | 89 | 90 | Use 91 | Level3 92 | Disabled 93 | WIN32;_WINDOWS;_DEBUG;%(PreprocessorDefinitions) 94 | true 95 | 96 | 97 | Windows 98 | true 99 | 100 | 101 | false 102 | true 103 | _DEBUG;%(PreprocessorDefinitions) 104 | 105 | 106 | 0x0409 107 | _DEBUG;%(PreprocessorDefinitions) 108 | $(IntDir);%(AdditionalIncludeDirectories) 109 | 110 | 111 | 112 | 113 | Use 114 | Level3 115 | Disabled 116 | _WINDOWS;_DEBUG;%(PreprocessorDefinitions) 117 | true 118 | 119 | 120 | Windows 121 | true 122 | 123 | 124 | false 125 | true 126 | _DEBUG;%(PreprocessorDefinitions) 127 | 128 | 129 | 0x0409 130 | _DEBUG;%(PreprocessorDefinitions) 131 | $(IntDir);%(AdditionalIncludeDirectories) 132 | 133 | 134 | 135 | 136 | Level3 137 | Use 138 | MaxSpeed 139 | true 140 | true 141 | WIN32;_WINDOWS;NDEBUG;%(PreprocessorDefinitions) 142 | true 143 | 144 | 145 | Windows 146 | true 147 | true 148 | true 149 | 150 | 151 | false 152 | true 153 | NDEBUG;%(PreprocessorDefinitions) 154 | 155 | 156 | 0x0409 157 | NDEBUG;%(PreprocessorDefinitions) 158 | $(IntDir);%(AdditionalIncludeDirectories) 159 | 160 | 161 | 162 | 163 | Level3 164 | Use 165 | MaxSpeed 166 | true 167 | true 168 | _WINDOWS;NDEBUG;%(PreprocessorDefinitions) 169 | true 170 | 171 | 172 | Windows 173 | true 174 | true 175 | true 176 | 177 | 178 | false 179 | true 180 | NDEBUG;%(PreprocessorDefinitions) 181 | 182 | 183 | 0x0409 184 | NDEBUG;%(PreprocessorDefinitions) 185 | $(IntDir);%(AdditionalIncludeDirectories) 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | Create 234 | Create 235 | Create 236 | Create 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | -------------------------------------------------------------------------------- /Student/Student.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | Header Files 23 | 24 | 25 | Header Files 26 | 27 | 28 | Header Files 29 | 30 | 31 | Header Files 32 | 33 | 34 | Header Files 35 | 36 | 37 | Header Files 38 | 39 | 40 | Header Files 41 | 42 | 43 | Header Files 44 | 45 | 46 | Header Files 47 | 48 | 49 | Header Files 50 | 51 | 52 | Header Files 53 | 54 | 55 | Header Files 56 | 57 | 58 | Header Files 59 | 60 | 61 | Header Files 62 | 63 | 64 | Header Files 65 | 66 | 67 | Header Files 68 | 69 | 70 | Header Files 71 | 72 | 73 | Header Files 74 | 75 | 76 | Header Files 77 | 78 | 79 | Header Files 80 | 81 | 82 | Header Files 83 | 84 | 85 | Header Files 86 | 87 | 88 | Header Files 89 | 90 | 91 | 92 | 93 | Source Files 94 | 95 | 96 | Source Files 97 | 98 | 99 | Source Files 100 | 101 | 102 | Source Files 103 | 104 | 105 | Source Files 106 | 107 | 108 | Source Files 109 | 110 | 111 | Source Files 112 | 113 | 114 | Source Files 115 | 116 | 117 | Source Files 118 | 119 | 120 | Source Files 121 | 122 | 123 | Source Files 124 | 125 | 126 | Source Files 127 | 128 | 129 | Source Files 130 | 131 | 132 | Source Files 133 | 134 | 135 | Source Files 136 | 137 | 138 | Source Files 139 | 140 | 141 | Source Files 142 | 143 | 144 | Source Files 145 | 146 | 147 | Source Files 148 | 149 | 150 | Source Files 151 | 152 | 153 | Source Files 154 | 155 | 156 | 157 | 158 | Resource Files 159 | 160 | 161 | 162 | 163 | Resource Files 164 | 165 | 166 | 167 | 168 | Resource Files 169 | 170 | 171 | -------------------------------------------------------------------------------- /Student/StudentClass.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | #include 3 | #include "StudentClass.h" 4 | 5 | 6 | using namespace std; 7 | 8 | Student::Student() { 9 | no = 0; 10 | name = ""; 11 | } 12 | 13 | Student::Student(long int no, string name) { 14 | this->no = no; 15 | this->name = name; 16 | } 17 | 18 | Student::~Student() { 19 | this->no = 0; 20 | this->name = ""; 21 | } 22 | 23 | void Student::setNo(long int no) { 24 | this->no = no; 25 | } 26 | 27 | void Student::setName(string name) { 28 | this->name = name; 29 | } 30 | 31 | long int Student::getNo() { 32 | return no; 33 | } 34 | 35 | string Student::getName() { 36 | return name; 37 | } -------------------------------------------------------------------------------- /Student/StudentClass.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | using namespace std; 5 | 6 | class Student { 7 | private: 8 | long int no; 9 | string name; 10 | public: 11 | Student(); 12 | Student(long int no, string name); 13 | ~Student(); 14 | 15 | void setNo(long int no); 16 | void setName(string name); 17 | 18 | long int getNo(); 19 | string getName(); 20 | 21 | bool operator == (const Student &s) { return (this->no == s.no) && (this->name == s.name); } 22 | }; -------------------------------------------------------------------------------- /Student/StudentDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/StudentDlg.cpp -------------------------------------------------------------------------------- /Student/StudentDlg.h: -------------------------------------------------------------------------------- 1 | 2 | // StudentDlg.h : header file 3 | // 4 | 5 | #pragma once 6 | #include "StudentManagement.h" 7 | #include "mainControl.h" 8 | #include "AddStudent.h" 9 | #include "DeleteStudent.h" 10 | #include "StudentSave.h" 11 | #include "CourseManagement.h" 12 | #include "SelectionManagement.h" 13 | 14 | // CStudentDlg dialog 15 | class CStudentDlg : public CDialogEx 16 | { 17 | // Construction 18 | public: 19 | CStudentDlg(CWnd* pParent = NULL); // standard constructor 20 | 21 | // Dialog Data 22 | #ifdef AFX_DESIGN_TIME 23 | enum { IDD = IDD_STUDENT_DIALOG }; 24 | #endif 25 | 26 | protected: 27 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 28 | 29 | 30 | // Implementation 31 | protected: 32 | HICON m_hIcon; 33 | // Generated message map functions 34 | virtual BOOL OnInitDialog(); 35 | afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 36 | afx_msg void OnPaint(); 37 | afx_msg HCURSOR OnQueryDragIcon(); 38 | DECLARE_MESSAGE_MAP() 39 | public: 40 | afx_msg void OnClose(); 41 | afx_msg void OnBnClickedButton2(); 42 | afx_msg void OnBnClickedButton4(); 43 | afx_msg void OnBnClickedButton5(); 44 | }; 45 | -------------------------------------------------------------------------------- /Student/StudentManagement.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/StudentManagement.cpp -------------------------------------------------------------------------------- /Student/StudentManagement.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | 4 | // CStudentManagement dialog 5 | 6 | class CStudentManagement : public CDialogEx 7 | { 8 | DECLARE_DYNAMIC(CStudentManagement) 9 | 10 | public: 11 | CStudentManagement(CWnd* pParent = NULL); // standard constructor 12 | virtual ~CStudentManagement(); 13 | 14 | // Dialog Data 15 | #ifdef AFX_DESIGN_TIME 16 | enum { IDD = IDD_DIALOG1 }; 17 | #endif 18 | 19 | protected: 20 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 21 | 22 | DECLARE_MESSAGE_MAP() 23 | public: 24 | afx_msg void OnBnClickedButton1(); 25 | afx_msg void OnBnClickedButton3(); 26 | afx_msg void OnBnClickedButton6(); 27 | afx_msg void OnBnClickedButton7(); 28 | afx_msg void OnBnClickedButton8(); 29 | afx_msg void OnBnClickedButton9(); 30 | }; 31 | -------------------------------------------------------------------------------- /Student/StudentSave.cpp: -------------------------------------------------------------------------------- 1 | // StudentSave.cpp : implementation file 2 | // 3 | 4 | #include "stdafx.h" 5 | #include "Student.h" 6 | #include "StudentSave.h" 7 | #include "afxdialogex.h" 8 | 9 | 10 | // CStudentSave dialog 11 | 12 | IMPLEMENT_DYNAMIC(CStudentSave, CDialogEx) 13 | 14 | CStudentSave::CStudentSave(CWnd* pParent /*=NULL*/) 15 | : CDialogEx(IDD_DIALOG4, pParent) 16 | { 17 | 18 | } 19 | 20 | CStudentSave::~CStudentSave() 21 | { 22 | } 23 | 24 | void CStudentSave::DoDataExchange(CDataExchange* pDX) 25 | { 26 | CDialogEx::DoDataExchange(pDX); 27 | DDX_Control(pDX, IDC_EDIT1, getFilename); 28 | } 29 | 30 | 31 | BEGIN_MESSAGE_MAP(CStudentSave, CDialogEx) 32 | ON_BN_CLICKED(IDOK, &CStudentSave::OnBnClickedOk) 33 | END_MESSAGE_MAP() 34 | 35 | 36 | // CStudentSave message handlers 37 | 38 | 39 | void CStudentSave::OnBnClickedOk() 40 | { 41 | // TODO: Add your control notification handler code here 42 | CDialogEx::OnOK(); 43 | CString filename; 44 | getFilename.GetWindowTextW(filename); 45 | USES_CONVERSION; 46 | string theName(W2A(filename)); 47 | CPublic::mc.saveStudentInfo(theName); 48 | } 49 | -------------------------------------------------------------------------------- /Student/StudentSave.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | 4 | 5 | // CStudentSave dialog 6 | 7 | class CStudentSave : public CDialogEx 8 | { 9 | DECLARE_DYNAMIC(CStudentSave) 10 | 11 | public: 12 | CStudentSave(CWnd* pParent = NULL); // standard constructor 13 | virtual ~CStudentSave(); 14 | 15 | // Dialog Data 16 | #ifdef AFX_DESIGN_TIME 17 | enum { IDD = IDD_DIALOG4 }; 18 | #endif 19 | 20 | protected: 21 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 22 | 23 | DECLARE_MESSAGE_MAP() 24 | public: 25 | CEdit getFilename; 26 | afx_msg void OnBnClickedOk(); 27 | }; 28 | -------------------------------------------------------------------------------- /Student/courses.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/courses.txt -------------------------------------------------------------------------------- /Student/mainControl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/mainControl.cpp -------------------------------------------------------------------------------- /Student/mainControl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/mainControl.h -------------------------------------------------------------------------------- /Student/res/Student.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/res/Student.ico -------------------------------------------------------------------------------- /Student/res/Student.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/res/Student.rc2 -------------------------------------------------------------------------------- /Student/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/resource.h -------------------------------------------------------------------------------- /Student/stdafx.cpp: -------------------------------------------------------------------------------- 1 | 2 | // stdafx.cpp : source file that includes just the standard includes 3 | // Student.pch will be the pre-compiled header 4 | // stdafx.obj will contain the pre-compiled type information 5 | 6 | #include "stdafx.h" 7 | 8 | 9 | -------------------------------------------------------------------------------- /Student/stdafx.h: -------------------------------------------------------------------------------- 1 | 2 | // stdafx.h : include file for standard system include files, 3 | // or project specific include files that are used frequently, 4 | // but are changed infrequently 5 | 6 | #pragma once 7 | 8 | #ifndef VC_EXTRALEAN 9 | #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers 10 | #endif 11 | 12 | #include "targetver.h" 13 | 14 | #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit 15 | 16 | // turns off MFC's hiding of some common and often safely ignored warning messages 17 | #define _AFX_ALL_WARNINGS 18 | 19 | #include // MFC core and standard components 20 | #include // MFC extensions 21 | 22 | 23 | #include // MFC Automation classes 24 | 25 | 26 | 27 | #ifndef _AFX_NO_OLE_SUPPORT 28 | #include // MFC support for Internet Explorer 4 Common Controls 29 | #endif 30 | #ifndef _AFX_NO_AFXCMN_SUPPORT 31 | #include // MFC support for Windows Common Controls 32 | #endif // _AFX_NO_AFXCMN_SUPPORT 33 | 34 | #include // MFC support for ribbons and control bars 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | #ifdef _UNICODE 45 | #if defined _M_IX86 46 | #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 47 | #elif defined _M_X64 48 | #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 49 | #else 50 | #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 51 | #endif 52 | #endif 53 | 54 | 55 | -------------------------------------------------------------------------------- /Student/students.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/veast/StudentInformationManagementSystem/11916ee26616ff4956dc0e6d80644aa6d9149101/Student/students.txt -------------------------------------------------------------------------------- /Student/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | --------------------------------------------------------------------------------