Use an array to store test grades.
- GradeBook.h - definition of class
GradeBook. Note that the public data member "students" can be
initialized in this way, because it is "static const".
Otherwise, data members are generally initialized in constructors.
- Initialize a non-static data member is a warning.
- Initialize a non-const data member is an error.
- GradeBook.cpp - member function
implementation
- The main program accesses the
class variable "GradeBook::students".