Computer Science Canada

dont understand why this doesnt work.

Author:  xtreemboarder [ Mon Jan 23, 2006 6:30 pm ]
Post subject:  dont understand why this doesnt work.

anyone? it keeps saying unexpected symbols ignored...

Author:  Martin [ Mon Jan 23, 2006 7:43 pm ]
Post subject: 

Your main function has to be inside the class.

EDIT: Also, a bug I noticed when I glanced through your code: when the user has an ace and you ask them what value they want it to be, they can enter anything and their score will be adjusted accordingly. Meaning that as soon as you get an ace, you can just enter however many points you need to get to 21 and win every time.

Author:  xtreemboarder [ Mon Jan 23, 2006 9:40 pm ]
Post subject: 

Martin wrote:
Your main function has to be inside the class.

EDIT: Also, a bug I noticed when I glanced through your code: when the user has an ace and you ask them what value they want it to be, they can enter anything and their score will be adjusted accordingly. Meaning that as soon as you get an ace, you can just enter however many points you need to get to 21 and win every time.


wow thanks. i didnt even notice that bug


: