What I'm trying to do is have the 1 main loop that will print the numbers in ascending order checking the last number if it's bigger or smaller than the one before it. If the number is smaller it skips it.I'm just not sure if I have the condition loops/if statemen's correct.
If what you are trying to do is sorting in ascending order numbers from that array , you should use instead a priority_queue , or std::array or std::vector then sort it.
Your question is quite unclear to me. If you want to sort the array of random numbers yourself, try reading and learning about bubble sort or selection sort.