jwdcfdeveloper
Programmer
Ok, here's my situation. I need to read floating point values from a file, use a sort algorithm to put the values in numerical order, and then print the values out to the same file of the original values. I need three functions:
1. A function to read the values from the file
2. A function to write the reshuffled values to the file
3. A function to put the values into numeric order (main)
I know the basic code needed to do this, but I am having problems setting up the functions so that I can call the read/write functions in the main function. Anyone have any ideas about how this is set up?
1. A function to read the values from the file
2. A function to write the reshuffled values to the file
3. A function to put the values into numeric order (main)
I know the basic code needed to do this, but I am having problems setting up the functions so that I can call the read/write functions in the main function. Anyone have any ideas about how this is set up?