
-----------------------------------
kho
Sun Nov 23, 2003 3:42 pm

help with listing names under Alphabetical order
-----------------------------------
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 :( 


-----------------------------------
Andy
Sun Nov 23, 2003 3:46 pm


-----------------------------------
read my tutorials on arrays and sortting and for your program, i suggest using a flexible array, also in my tutorial

-----------------------------------
kho
Sun Nov 23, 2003 3:51 pm


-----------------------------------
I wasn't tought arrays yet, can u show me another way

-----------------------------------
Andy
Sun Nov 23, 2003 4:04 pm


-----------------------------------
do you noe how many names there are gonna be?

-----------------------------------
kho
Sun Nov 23, 2003 4:07 pm


-----------------------------------
In the question it says series, so I guess unlimited lol

-----------------------------------
Tony
Sun Nov 23, 2003 6:16 pm


-----------------------------------
well then you need to create an unlimited number of variables :lol:

var name1:string
var name2:string
...
var nameInfinity:string


good luck :lol: Just read a tutorial on arrays. I've wrote one and dodge is saying he wrote another one...

-----------------------------------
Andy
Sun Nov 23, 2003 6:48 pm


-----------------------------------
mine is better than urs tony :p
