|
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!
|