Computer Science Canada help with program using procedure and getchar |
Author: | rated [ Fri May 02, 2008 5:54 pm ] | ||
Post subject: | help with program using procedure and getchar | ||
Hey guys Im new to turing but I have a assignment that requires me to teach the class about a certain topic so I chose the "history of telecommunications" SO basically the user has to press a number on the keyboard corresponding to the subtopic. If he wants to go back to main menu he has to press e. The problem is after the user presses e (to go back to the main menu) he has to press the number twice on the keyboard for it to take him to the subtopic. For example, if the user presses 1, it will take him to subtopic 1. He then presses e to go back to the main menu. However, if he wants to go back to subtopic 1 again he has to press number 1 on the keyboard twice. On another note is there anyway to hide that little blinking box (not sure what to call it lol)? Im not sure why its doing this. Any help will be appreciated. Thanks ![]() Heres the basic version of my program
|
Author: | Tony [ Fri May 02, 2008 7:03 pm ] | ||
Post subject: | Re: help with program using procedure and getchar | ||
rated @ Fri May 02, 2008 5:54 pm wrote: is there anyway to hide that little blinking box
That's called the cursor. You can set your view to not display that.
You might also find this topic to be of use. |
Author: | rated [ Fri May 02, 2008 7:13 pm ] |
Post subject: | RE:help with program using procedure and getchar |
Ahh cursor...I knew it was something like that...thanks tony...ill look at that topic too ![]() |
Author: | rated [ Sat May 03, 2008 1:53 pm ] |
Post subject: | RE:help with program using procedure and getchar |
Im just wondering what is the difference between getchar and getch? |
Author: | Tony [ Sat May 03, 2008 1:59 pm ] |
Post subject: | RE:help with program using procedure and getchar |
looking at the difference between two sources involved, I'm gonna assume that getchar is a function, while getch is a procedure working with a reference. |