Hi
I am trying to do a program that can sort array data from a file containing two columns.After sorting the data, the program should print the two sorted arrays to a single output file.
Sorting should occur in a function that has this prototype:
void sortTwoArraysBasedonFirst(double x[], double y[], int numPoints);
Also i had two prototypes below,which should be for input and output respectively.Such that the output should be called three times. The first time will be to display the unordered list to the screen. The second and third times will display the arrays to the screen and print them to the output file.
So far i did the program but i could only display the data as it is in the file and know the number of rows of data.The code is as follows.Urgent please.
James2250 can you please tell me how ,am just new in the forum so i don't know much how to put it in code tags.I just include [ ] ,but don't know if its what you talking about