Need codes for displaying figures in descending mode.

The following example is from a book but I want to refine it by displaying all the figures in descending order instead of getting the minimum value. I use MSVC++ Windows 2000.


#include <iostream.h>

// reference: reference guide to c and c++ james l. antonakos

// REF: QA76.73 C15 C56323 1999
// kenneth c. mansfield jr.

#define maxnumber 12 // maximum number of array elements

// prototype area
int minimum_value(int user_array[]);

void main(void)
{ // start of main

cout.precision(2);
cout.setf(ios::fixed|ios::showpoint);

int number[maxnumber];
int index;

cout << "give me 12 numbers and I'll find the minimum value: ";
for (index = 0; index < maxnumber; index++)
{
cout << "Number: " << index +1;
cin >> number[index];
}
cout << "the minimun value is: " << minimum_value(number) << endl;
} // end of main

//cout.precision(2);
//cout.setf(ios::fixed|ios::showpoint);


// definition area ################### ######## ######## ####
int minimum_value(int user_array[])
{
cout.precision(2);
cout.setf(ios::fixed|ios::showpoint);

int index;
int minimum;
minimum = user_array[0];
for (index = 1; index < maxnumber; index++)
if (user_array[index] < minimum)
minimum = user_array[index];
return(minimum);
}


Here is the result that I got:

give me 12 numbers and I'
Number: 288 The first iteration #: 2 is supposed to be before 88.
Number: 365
Number: 478
Number: 512
Number: 645
Number: 767
Number: 812
Number: 934
Number: 1033
Number: 112
Number: 129
the minimun value is: 2
Press any key to continue