do a SortByAttribute method in C++ where I am printing out a list of heroes and their
Question:
do a SortByAttribute method in C++ where I am printing out a list of heroes and their name and attributes. The way I have tried this already is not working within my program. I have done everything up until the instructions below, so I already have my method and everything I just need some kind of for loop to print the name and attribute of every hero.. Thank you! // After calling MergeSort, print the items in the sorted list that is returned from MergeSort. // NOTE: print the hero ID, selected attribute, and name(see screenshot). // To get the selected attribute, call the GetSortByAttribute on each hero.
//
Organizational Behavior
ISBN: 978-0273774815
8th Edition
Authors: Andrzej A. Huczynski, David A. Buchanan