first of all, since i know of the excistance of darkbasic i'm very interested in programming, now years later, i still suck at it.
while reading through " hands on darkbasic pro" for the second time i had to type some test code for the hangman game.
the weird part is, it doesn't work at all, double checked the code.
another weird part is, it only works if i put a " print word$ " after " next c"
why doesn't it work right out of the book?
Rem Project: testhinkofword
Rem Created: Wednesday, July 20, 2011
Rem ***** Main Source File *****
randomize timer()
thinkofword()
print word$
wait key
end
function thinkofword()
data "london","glasgow","blackpool","edinburgh"
data "boston","berlin","moscow","sydney"
data "wellington","washington","rome","amsterdam"
data "stockholm","oslo","lisbon","madrid"
data "prague","bonn","budapest","vienna"
num = rnd(19)+1
for c = 1 to num
read word$
next c
ENDFUNCTION
and please excuse me, don't know how to post code snippets, i see when i post a "code" button, but it does nothing but putting a [CODE] in my post