What I have to do:
I have to read numbers from a file input from the keyboard into an array, sort the numbers, and write the sorted numbers to a file.
My problems are twofold:
First, I don't know how big to make the array. When I try to write the sorted numbers I can't get the junk numbers in my oversized array out of the way. I think that if I used a vector it would solve the problem, but I was specifically instructed to use a one dimensional array.
Second, I have to open the output file in function main, but I need to have at least four functions, and that entails writing to my output file in a separate function. I can get my compiler to okay the code, but it doesn't actually write to the file.
Assistance would be greatly appreciated. Thanks!