I believe my first post was unclear as to what i was asking, so anyways i have to implement a class named course with 4 private variable 2 being strings(department and Title) 1 being an int(course no.) and another being an array of 3 characters(section no.). I have to write accessors for each of the variable, which is easy but i don't not know how to access the character array since c++ wont allow arrays to be return types. There was a hint saying to return a reference to that array and i have no clue what that means, we have not used pointers yet, so im clueless! Also i need to declare a typedef for the array of three characters and the accessor for the character array (section no.) should return a const refrence to the typedef. If i could only figure out what is exactly trying to be said im sure i'd have no problem implement the class. For the typedef I have
which i dont know if it is correct as well.Code:typedef char value_type[3];
Any help or advice would be great! Thanks again