Asking for array class constructor initialization

Dear all ,

As far as I read from the book, if you want to initialize or pass array in function you should have array size and array name . But in the following codes, I found that there is no array size in class constructor. Anyone could explain? Really appreciate for your explanation.

The codes are as follow.

GradeBook.h

#include<string>
using namespace std ;

class GradeBook {

private :
string courseName;
int grades[students ] ;

pulic :
static const int students = 10 ;

GradeBook(string , const int[] ) // Why this array initialization don't have array size ????

void set courseName ( string )
........

Topic archived. No new replies allowed.