class grades
{
private:
char *grade;
string course[20];
int numCourse;
public:
grades();
bool setGrade(char *gradeIn);
bool setCourse(char *nameIn);
};
So that's my class declaration. I want to set a constant number instead of 20 in the array declaration. How would I go about doing that? I have tried static const but the problem is that every time the class returns an error saying out of scope.