0 Members and 2 Guests are viewing this topic.
Start by displaying the text "Press a number", and using GetKey() to let the user press a key.QuoteWouldn't you'd just get the keypress, then have the program run through a look up table and return the value from the table?That's too hard for beginners
Wouldn't you'd just get the keypress, then have the program run through a look up table and return the value from the table?
Quote from: Hot_Dog on November 11, 2010, 05:12:27 pmStart by displaying the text "Press a number", and using GetKey() to let the user press a key.QuoteWouldn't you'd just get the keypress, then have the program run through a look up table and return the value from the table?That's too hard for beginnersso do i do that for every number? or just once?
Quote from: adamac16 on November 11, 2010, 05:42:07 pmQuote from: Hot_Dog on November 11, 2010, 05:12:27 pmStart by displaying the text "Press a number", and using GetKey() to let the user press a key.QuoteWouldn't you'd just get the keypress, then have the program run through a look up table and return the value from the table?That's too hard for beginnersso do i do that for every number? or just once?Whatever number the user presses. Try it.
He means you should try to make the program in ASM: the user presses a button, you give the key code.