answersLogoWhite

0


Best Answer

Use the std::vector template class (in header <vector>) to store the numbers, then apply the std::vector.sort() algorithm. The default sort order is ascending. The elements must support the less-than operator (<). All the built-in primitives (int, char, double and float) already support this operator.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

7y ago

During input, assume the first number input is the largest and store it. As each new number is entered, compare with the stored value. If the new value is larger, update the stored value. Once all numbers have been input, the stored value holds the largest value entered.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

Input the numbers into an array, sort the numbers in descending order, then print the results. If there are fewer than, say, 20 numbers, then a bubble sort will suffice. Otherwise use a more advanced sorting algorithm such as quick sort.

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

Put the numbers in a vector (std::vector) then sort the vector (std::sort).

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you make a C plus plus program that arrange the numbers from highest to lowest?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the biggest number you can make out of the following 3 digits 479?

You arrange the numbers from highest to lowest, so the answer is 974.


What will be the resultant if third digit of the lowest number is multiplied with the second digit of the highest number?

The answer will depend on what the highest and lowest numbers are!The answer will depend on what the highest and lowest numbers are!The answer will depend on what the highest and lowest numbers are!The answer will depend on what the highest and lowest numbers are!


When excel sorts which has the highest priority blanks special charracters text numbers?

The order from highest to lowest is letters, special characters, numbers and blanks.The order from highest to lowest is letters, special characters, numbers and blanks.The order from highest to lowest is letters, special characters, numbers and blanks.The order from highest to lowest is letters, special characters, numbers and blanks.The order from highest to lowest is letters, special characters, numbers and blanks.The order from highest to lowest is letters, special characters, numbers and blanks.The order from highest to lowest is letters, special characters, numbers and blanks.The order from highest to lowest is letters, special characters, numbers and blanks.The order from highest to lowest is letters, special characters, numbers and blanks.The order from highest to lowest is letters, special characters, numbers and blanks.The order from highest to lowest is letters, special characters, numbers and blanks.


How do you sort data in a database?

To sort is to arrange a field(column) depending on whether you choose to have them from lowest to highest or from highest to lowest (ascending or descending)


What is the greatest five digit number formed with the digits 753and 2?

Just arrange all numbers from highest to lowest, from left to right.So it would be:7532


How do you find range in a set of numbers?

The first step is to sort the numbers from highest to lowest. The range is then the difference between the first and last numbers, or the highest and lowest.


What are the three highest medal and arrange them to lowest medal to the highest category?

The three highest medals are the gold medal, silver medal, and bronze medal. The order from lowest to highest category is: bronze, silver, gold.


What are the lowest and the highest prime numbers between 1 and 100?

The lowest and highest prime numbers between 1 and 100 are 2 and 97 respectively.


How find out the given five numbers is lowest as well as highest?

Any number can be the lowest as well the highest of a set only if all the numbers are the same.


What is numbers that are in order from lowest to highest called?

Consecutive.


What is the smallest number you can make using the digits 1 2 3 4 5 and 6?

123,456 would be the smallest number using all 6 digits. You arrange the numbers from lowest to highest.


What is the highest and the lowest four-digit numbers?

Lowest four-digit number: 1000 Highest four-digit number: 9999