Completed two assigned home tasks using array structure. However, I have a request to skip the third task for arrays because it can be completed using a sorting algorithm from the previous task, such as quicksort, or perhaps another sorting algorithm may be chosen. To complete the last task, I can modify lines from 40th to 43rd using the following:
cout << "Вторым наибольшим элементом массива является: " << list[N-1] << endl;
This will give us the correct answer.
Completed two assigned home tasks using array structure. However, I have a request to skip the third task for arrays because it can be completed using a sorting algorithm from the previous task, such as quicksort, or perhaps another sorting algorithm may be chosen. To complete the last task, I can modify lines from 40th to 43rd using the following:
cout << "Вторым наибольшим элементом массива является: " << list[N-1] << endl;
This will give us the correct answer.