I have 4 variables Quick, Bubble, Insert and Select with measured time and I want make some results comparison which looks like this
cout << "1st QuickSort with time " << quick_time << " ms" << endl;
cout << "2st InsertSort with time " << insert_time << " ms" << endl;
However making comparisons with if for 4 variables seem to be very long and complicated but when I try to insert these variables into array and sort it I loose information about which sort is on which position.
How can I make this with nice and not messy code most efectively ? Thanks