I am new to C++. I am look for the best way to sort a structure or class array. (I hope I am using the right terms
I have a || array of 5 items with name=(john, jim, danny, spencer, greg)
They have tuition = (10., 12, 11, 14, 18)
I would like to change this to a class and be able to sort on either tuition or names.
What is the best way to do this in c++