Computer Science Canada Inkey in turing |
Author: | tum_twish [ Tue Apr 22, 2003 9:49 am ] | ||||
Post subject: | Inkey in turing | ||||
In QBasic, there is a command that will wait until a key is pressed.
or
Is there a similar command in Turing that will wait until the key is pressed?[/code] |
Author: | tomako [ Tue Apr 22, 2003 9:56 am ] |
Post subject: | |
im thinking getch, but i duno how u can wait til a "certain key"... |
Author: | Blade [ Tue Apr 22, 2003 10:51 am ] | ||
Post subject: | |||
yeah use getch, with a loop... we'll use 'h' as the certian key your waiting for
oh, and check out the tutorials section before you post help, it may clear up a lot of your problems http://www.compsci.ca/bbs/viewforum.php?f=3 |
Author: | Homer_simpson [ Tue Apr 22, 2003 11:59 am ] | ||
Post subject: | |||
"x" can be changed to character u want... |
Author: | Tony [ Tue Apr 22, 2003 12:02 pm ] |
Post subject: | |
you for got to put getch inside the loop And after that it would be exactly what Blade already said. |
Author: | Delta [ Tue Apr 22, 2003 1:45 pm ] | ||
Post subject: | |||
Or use hasch for anykey to be waited upon
|
Author: | Blade [ Tue Apr 22, 2003 2:10 pm ] | ||||
Post subject: | Re: Inkey in turing | ||||
tum_twish wrote: In QBasic, there is a command that will wait until a key is pressed.
or
Is there a similar command in Turing that will wait until the key is pressed?[/code] he said he wanted one so that he can wait until a key is pressed, with hasch it keeps goin past it until a key is pressed |
Author: | Homer_simpson [ Tue Apr 22, 2003 2:55 pm ] |
Post subject: | |
why would u use getch command? (ch = getchar) does it all ... =/ |
Author: | Office of the Registar [ Fri Apr 25, 2003 9:13 am ] |
Post subject: | |
strings can be concatenated as well, maybe that's why use getch |