![]() |
removing a number from an arry
ok, i need some help on a problem i am having. i think this should be an easy one for you guys to figure out but my feeble brain cannot come up with it and anything i found using google has failed me so here it is.
i want to out put an arry on numbers then have you select one. one that number is selected i want the program to loop and out put the same batch of numbers, but i want it to leave out the number that was selected. here is what i have. Code:
so yeah... i want to enter say number 3. so click, i entered 3. i want the third number removed from the "rolled array" so that it will not be repeated the next time around. so any ideas? |
Re: removing a number from an arry
how about something like
Code:
if (x!=entered_num) |
| All times are GMT +5.5. The time now is 14:59. |