subject

Create a class Student and another called StudentClub. StudentClub should have the fields President, Vice-President, Secretary, and Treasurer, all of which should be pointers to a Student object. In this way, the same student could hold different offices. In addition, StudentClub should have a club members field, which should be a vector of pointers to Student objects. Your class definition should include (but not limited to) the following constructor and member functions.

StudentClub(Student* p, Student* v, Student* s, Student* t, vector m); Student* get_president() const; Student* get_vice_president() const; Student* get_secretary() const; Student* get_treasurer() const; vector get_members() const; void add_member(Student* s); int number_members()

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 13:30, cdradlet2001
What are the main arguments/points presented in the video about consciousness? present your opinion about the arguments. do you agree with all points? feel free to offer you personal reflections about the video?
Answers: 1
image
Computers and Technology, 22.06.2019 11:00, abelxoconda
Which are examples of note-taking tools? check all that recording devices sticky notes digital highlighters paper flags highlighting pens digital displays digital flags
Answers: 1
image
Computers and Technology, 22.06.2019 15:30, mariap3504
Whats are the different parts of no verbal comunication, especially body language?
Answers: 3
image
Computers and Technology, 22.06.2019 17:00, silvijaaa
The two main ways in which marketers address the competition with their strategies are by satisfying a need better than a competition and by
Answers: 2
You know the right answer?
Create a class Student and another called StudentClub. StudentClub should have the fields President,...

Questions in other subjects:

Konu
Mathematics, 17.10.2020 07:01