1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
Use following main() function.
main() function
void printArray(const int mX[], int size, int printSize);
void selectionSort(int mX[], int size);
void main()
cout << "Before sorting:" << endl;
printArray(rn, SIZE_R, 100);[output][/output]
statArray(rn, SIZE_R, max, min, avg, var, st_dev);
cout << endl;
cout << "max: " << max << ", min: " << min << ", avg: " << avg
<< ", var: "<< var << ", st_dev: " << st_dev << endl;
cout << endl;
selectionSort(rn, SIZE_R);
cout << "After sorting:" << endl;
printArray(rn, SIZE_R, 100);
|