How to realize the attendance Management system on C++
This article mainly explains "how to implement the attendance management system on C++". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "C++ how to achieve attendance management system" it!
Design an attendance management system to record students' absenteeism
1. Design students
2. Design courses
3. Design attendance
4. Enter the absence of students.
5. Revise a student's absence from class
6. Inquire about the absence of a student.
7. Count the list and number of absenteeism students over a period of time
For reference only, there are still some deficiencies, please correct more!
# include # include using namespace std;class Student {public: void setname (char * setname) {strcpy (name,setname);} void setcarname (char * setcarname) {strcpy (carname,setcarname);} void setseating_capacity (char * setseating_capacity) {strcpy (seating_capacity,setseating_capacity) } void setidentifynumber (char * setidentifynumber) {strcpy (identifynumber,setidentifynumber);} char * getname () {char * setname=name; return setname;} char * getcarname () {char * setcarname=carname; return setcarname } char * getsetseating_capacity () {char * setseating_capacity=seating_capacity; return setseating_capacity;} char * getidentifynumber () {char * setidentifynumber=identifynumber; return setidentifynumber;} private: char name [30]; char carname [30] Char seating_capacity [30]; char identifynumber [30];}; class Course:public Student {public: void setcoursename (char * setcoursename) {strcpy (coursename,setcoursename);} void setcoursetime (char * setcoursetime) {strcpy (coursetime,setcoursetime) } void setcourseplace (char * setcourseplace) {strcpy (courseplace,setcourseplace);} char * getcoursename () {char * setcoursename; setcoursename=coursename; return setcoursename;} char * getcoursetime () {char * setcoursetime; setcoursetime=coursetime Return setcoursetime;} char * getcourseplace () {char * setcourseplace; setcourseplace=courseplace; return setcourseplace;} private: char coursename [30]; char coursetime [30]; char courseplace [30];} Class Attendence:public Course {public: void setattendence (int setattendence) {int iTuno; attendence [I] = setattendence; iTunes;} int * getattendence () {int * setattendence; setattendence=attendence; return setattendence;} private: int attendence [30];} Int input (Student n [], Student I [], Course cn [], Course ct [], Course cp [], Attendence a []); int modify (Student I [], Course cn [], Course ct [], Course cp [], Attendence attendence [], int totalnumber); int search (Student n [], Student I [], Course cn [], Course ct [], Course cp [], Attendence a [], int totalnumber)) Int statistic (Student n [], Student I [], Course cn [], Course ct [], Course cp [], Attendence a [], int totalnumber); void bubble (int arr [], int len); Student n [20]; Student I [20]; Course cn [20]; Course ct [20]; Course cp [20]; Attendence a [20]; int totalnumber=0;char name [30]; char identifynumber [30]; char coursename [30]; char coursetime [30]; char courseplace [30]; int attendence;int array [30] Int att [30]; int main () {while (1) {cout