Computer Science Canada

need blackjack adding

Author:  kit-kat-kid [ Sat Jul 10, 2004 4:28 pm ]
Post subject:  need blackjack adding

i need help with the adding for my blackjackgame

Author:  Mazer [ Sat Jul 10, 2004 4:37 pm ]
Post subject: 

Few things:
1) There's really no point in zipping something if it's just a single turing file, or did you forget to attach some pics?
2) Please be more specific about what help you need. Maybe post a few lines of code or something that you need fixed.
3) Some code problems:

if playerdeck =37 and =50 then

playerdeck is an array, so you have to specify an element of the array to compare, ie, playerdeck (x). Also, programming isn't like English where you can make multiple comparisons and assume they involve a mutual item. Meaning, the line should be

if playerdeck(x) = 37 and playerdeck (x) = 50 then

Keep in mind, this is also wrong. Or at least, it's pointless since a single variable can't have two different values.

I won't go over the other errors since they simply involve undeclared variables except for the 'end for' line which should be 'end if'.

Author:  kit-kat-kid [ Sat Jul 10, 2004 4:54 pm ]
Post subject: 

well thanks anyway ill try to fix it all up thanks for the info