Working on a program that reads in a .txt file with a list of stocks and stock data i.e...
Co. LO HI
AOL 40 48
HP 23 45
CSCO 18 60
I've created 2 separte arrays one the ticker and one for the data.
I need to sort the ticker array while also sorting the corresponding hi and low data. Not sure how being that they are of different type. Thanks for any assistance.
Here is what I have thus far
hold = stockname[w];
stockname[w] = stockname[w+1];
stockname[w+1] = hold;
how would also sort the low hi data to correspond with the correct ticker.
this was previously posted int the wrong board