Author |
Message |
kho
|
Posted: Sun Nov 23, 2003 3:42 pm Post subject: help with listing names under Alphabetical order |
|
|
code: | var name: string
var count : int := 0
put "-- Enter a series of names --"
loop
put "Name ",count + 1, ": "..
get name
count := count + 1
if name = "*" then
exit
end if
end loop
put name
THeres the code. I've tried for hours, how do I put it in Alpha :(
|
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Andy
|
Posted: Sun Nov 23, 2003 3:46 pm Post subject: (No subject) |
|
|
read my tutorials on arrays and sortting and for your program, i suggest using a flexible array, also in my tutorial |
|
|
|
|
|
kho
|
Posted: Sun Nov 23, 2003 3:51 pm Post subject: (No subject) |
|
|
I wasn't tought arrays yet, can u show me another way |
|
|
|
|
|
Andy
|
Posted: Sun Nov 23, 2003 4:04 pm Post subject: (No subject) |
|
|
do you noe how many names there are gonna be? |
|
|
|
|
|
kho
|
Posted: Sun Nov 23, 2003 4:07 pm Post subject: (No subject) |
|
|
In the question it says series, so I guess unlimited lol |
|
|
|
|
|
Tony
|
|
|
|
|
Andy
|
Posted: Sun Nov 23, 2003 6:48 pm Post subject: (No subject) |
|
|
mine is better than urs tony :p |
|
|
|
|
|
|