E
E
Evgenia Sadovskaya2019-01-20 21:04:07
Visual Basic
Evgenia Sadovskaya, 2019-01-20 21:04:07

How to populate a two dimensional array?

Can you please tell me how to fill an array in Qbasic?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Somewhere Intech, 2019-01-20
@john36allTa

I don't know QBasic, well, I don't remember exactly what's in the dictionary, but I'll give food for thought:
1. fill the first (zero?) index of the array with a random one.
2. passing through the first handicap, do it randomly (NUM = Rand(0, 100) - I was not too lazy to google it =)) and if it is less than or equal to 50, then throw it into the array (second / first index) -1, and more - throw number from the first index.
3. when "rendering" send -1 to dev/null =)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question