//header file with constructor initialization within the StudentClub class
class StudentClub
{
public:
StudentClub(Student* p, Student* v, Student* s, Student* t, vector<Student*> m);
};
//parametrized constructor
StudentClub::StudentClub (Student* p, Student* v, Student* s, Student* t, vector<Student*> m)
{
president = p;
vicepresident = v;
secretary = s;
treasurer = t;
member = m;
}
//main function
#include <iostream>
#include "Student.h"
#include "StudentClub.h"
#include <vector>
usingnamespace std;
int main()
{
string name;
cout << "President: " << endl;
cin >> name;
Student p (name);
cout << "Vice-President: " << endl;
cin >> name;
Student v (name);
cout << "Secretary: " << endl;
cin >> name;
Student s (name);
cout << "Treasurer: " << endl;
cin >> name;
Student t (name);
//loop that keeps asking for names until a Q is typed
vector <Student> clubmem;
Student m (name);
do
{
cout << "New Member (Q to quit): " << endl;
cin >> name;
clubmem.push_back(m);
}
while (m.get_name() != "Q");
//ERROR ON THIS LINE OF CODE
//No matching constructor for initialization of 'StudentClub'
StudentClub club (&p, &v, &s, &t, &clubmem);
I include the header file and cpp file for StudentClub. My main function is giving me an error where it says that there is no matching constructor for the initialization of StudentClub. I'm not sure what the issue is any help would be greatly appreciated.