I keep getting an error for the names(John, Smith) saying that they are const char and not string and the constructors does not match the argument list. How do i fix that?
this is how I called in in the class.
class Student
{
private:
string fname;
string lname;
int ID;
public:
static int numberOfStudents;
void student();
void student(string, string, int)
Where are these constructors you mention? I see two functions named student in the Student class but no constructors. Remember C++ is case sensitive, student is not the same as Student. Also constructors don't have a return type.