0

Hi, I'm supposed to make a program that asks the user how many integers they want to input, then prompt them to enter those integers. and then I'm supposed to put those integer into ascending order. How do I do that?

this is my code so far

```
#include <iostream.h>
void main (void)
{
int *array, num;
cout << "How many integers do you wish to allocate?";
cin >> num;
array = new int[num+1];
if (array == NULL)
{
cout << "Error allocating memory!\n";
return;
}
cout << "Enter the integers here: \n";
for (int count =0; count < num; count++)
{
cout << "Integer # " << (count +1) << ": ";
cin >> array[count];
}
```