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

Username:   Password: 
 RegisterRegister   
 Help regarding several numbers
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Flikerator




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
Bacchus




PostPosted: Wed Feb 02, 2005 12:21 pm   Post subject: (No 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
Flikerator




PostPosted: Wed Feb 02, 2005 12:29 pm   Post subject: (No 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)
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  [ 3 Posts ]
Jump to:   


Style:  
Search: