Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gmmastros on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sort ascending inputed string?

Status
Not open for further replies.

TipGiver

Programmer
Sep 1, 2005
1,863
0
0
Hi,
I would like some help on this, so i can start with.
I want to enter a number (2-9). Then ask the user to enter that number of strings. They can contain a-z, A-Z, 0-9 and symbols... anything. When the last is entered and hit the enter, i want to sort them and display to the screen alphabetically.

So far, if i use: ah=0ah and int 21h at the table: table db 10 db 00 db 00, i initialize a table (buffer) with max chars 10. So table[0] has 10, table[1] has the actual number of pressed chars from the keyboard, and from table[2] and on there is the string i entered.

Can you help me on this, or point an other way to do this?

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top