consider this class
class Course {
string book;
char section;
public:
Course (string bk, char sec) : book(bk), section (sec){}
string getBook(){return book;}
char getSection (){return section;}
void print() {
cout <<"book name is: "<<book<<endl << "section is: " << section << endl;
}
};
i want to make array of string book and char section, how can i do that. thanks