Computer Science Canada

Help regarding several numbers

Author:  Flikerator [ Wed Feb 02, 2005 12:18 pm ]
Post subject:  Help regarding several numbers

I want seven random numbers to be displayed using one var. Then I choose them one by one and put them into other vars.
EXAMPLE
7 12 3 15 51 34 23

I put 7 into var num1 (So num1 = 7)

and the array of numbers now equals

12 3 15 51 34 23

I should only need 7 vars. the arrayed number and the six others.

Note: 1 number will be left over.

Author:  Bacchus [ Wed Feb 02, 2005 12:21 pm ]
Post subject: 

so.. you want a array with seven numbers that when one is chosen the array gets smaller? there flexible array for ya, i dont kno much about them (been to lazy to read tutorial) but i kno u like put the last array into the spot where the first one was and such lol go read tutorial Razz

Author:  Flikerator [ Wed Feb 02, 2005 12:29 pm ]
Post subject: 

Well I have 695 lines of code in diseray that im sorting right now so I won't be able to read the tutorial till later lolz. Anyone have an example program with flexible arrays?

(Or an alternate way to do it)


: