Computer Science Canada Getch Command Confusion |
Author: | ProgrammingFun [ Tue Jan 12, 2010 8:08 pm ] | ||
Post subject: | Getch Command Confusion | ||
What is it you are trying to achieve? I am trying to code my program to automatically proceed after the user has entered their choice without waiting for them to press enter. What is the problem you are having? I am creating a quiz on Turing. I want the program to automatically go to the next question when the user enters a choice instead of having to wait for them to press enter. I have checking the Tutorials but I do not understand most of it. I do know that this has something to do with the getch command. ![]() Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) <Answer Here>
Please specify what version of Turing you are using 4.1.1 |
Author: | Zren [ Tue Jan 12, 2010 8:49 pm ] | ||
Post subject: | RE:Getch Command Confusion | ||
Getch is a procedure. And the type must be :string(1). Here's a basic use. I've also included some basic conversion of strings to numbers for the hell of it.
|
Author: | TerranceN [ Tue Jan 12, 2010 8:51 pm ] |
Post subject: | RE:Getch Command Confusion |
You should look at the Turing Refrence. In Turing, click Help->Turing Refrence->Search, type in getch, double click on getch on the left side, read about getch. EDIT : Whenever I type something to post, someone beats me to it... |
Author: | ProgrammingFun [ Wed Jan 13, 2010 7:54 am ] |
Post subject: | RE:Getch Command Confusion |
Thanks! This should make my life easier. |