Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Column Sorting
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
dehu87




PostPosted: Sat May 31, 2008 4:08 pm   Post subject: Column Sorting

How do you make it so that when you read a file the output is set into columns and rows, also sorted so that the names are in alphabetical order? Confused

I have a text file as an example of a file that would be read.

Edit: the first column is the name, second is the colour and third is the age



example.txt
 Description:

Download
 Filename:  example.txt
 Filesize:  58 Bytes
 Downloaded:  79 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
syntax_error




PostPosted: Sat May 31, 2008 4:16 pm   Post subject: RE:Column Sorting

I havnt looked at the files but I guess you read in one word the n after a space you read the next term as something else and so forth? understand?

as for alphabetical order look at ASCII values that should help you.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: