I cannot seem to get it sorting properly, if you run this you'll see the issue. It skips numbers.
How do I check to see the next highest number?
here is the exercise, I cannot figure it out without loading an array.
I am convinced I am missing something so simple...
Exercise 4. Write a C++/CLI program that creates an array with a random number of elements of type int. The array should have from 10 to 20 elements. Set the array elements to random values between 100 and 1000. Output the elements, fi ve to a line, in ascending sequence without sorting the array; for example, find the smallest element and output that, then the next smallest, and so on.