View Single Post
Old Mar 31st, 2008, 2:43 PM   #1
jack0987
Newbie
 
Join Date: Mar 2008
Posts: 2
Rep Power: 0 jack0987 is on a distinguished road
C++ file sorting

Can somebody give me an idea how to start doing this??

Tasks:
1. There is one input file which contains a list of data with a number of columns and rows.
2. The file should be sorted according to different column(ranks, location...) depending on the input of the user.


My problem is that how should i read the rows so that it can be stored it in a structure, such that the file can be sorted according to one column at a time(e.g. according to the rank).

Should spaces be taken into consideration while reading the file??

thanks in advance for any help would be appreciated!
jack0987 is offline   Reply With Quote