I'm sorry to say...I am completely lost. It's been a whole semester since the last time I picked up C++, and now I cam completely clueless on what to do here.
To explain what my instructor wants us to do:
He wants us to complete an exercise by writing functions for printing out, sorting, then printing out again, elements in an array.
The array in question is a String array. -and it consists of only five cells with names. In order as is, they are:
tom, mary, ann, bill, carol
He has informed us that the assignment and relational operators are overloaded. He also doesn't tell us in what way we have to sort it, but I am assuming it will be alphabetically.
I don't need the answer so much as I need a suggestion on which direction to take.
What I don't understand is how that would sort the array alphabetically, since the array I am going to be sorting is an array of strings and not an array of integers or anything else for that matter.
. . . I don't think the instructor wants us changing what's already there. The Exercise is like a fill in the blank kind of thing. You fill in the needed code to complete the program.
@ResidentBiscuit: Well. The other methods seem really complicated to me. We never discussed them when I took the beginner class for C++ at the community college I go to.