Hey guys,
I'm working on a C++ assignment for college. For anyone who knows some C++, I'd guess it'd be really simple, but I'm really struggling with it. Basically, I have to start by making an array of 100 random numbers between 0 and 250. Then, I have to sort the array, in descending order. Finally, I have to have the sorting of the array set up as a separate function. I can do the first 2 steps, but when I try to make the sorting of the array a separate function, I'm doing something wrong and it's not doing anything (when it even compiles at all, seeing as when I try to make changes, they are inevitably messing up the code completely). I was trying to use my most recent finished assignment (which also had a separate function for part of the program) to help, but I just can't seem to get this one working. If anyone thinks they might be able to help, could you let me know and then I can PM you with my code issues.
Hopefully someone can be of help, thanks guys!