Hi, I am trying to convert part of code Struct to Class, and I understand that we just replace Struct with Class, however, I am stuck in this part where the lengthy comment is at:
I commented where most of the errors coming from.Code:class Book //Previously was "struct" { public: } *books[100]; class Course //changed from struct to class { public: } *course[100]; class Class //same here, struct to class { //these were struct, but i changed them to class, but I think i am getting errors because of the pointers?? class Book* book; //Help HERE! class Course *course; public: int sectionNumber; bool required; } *classes[100];
I think my conflict resides with the pointers, since the "book" and "course" are used in other parts of the code.