Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Two simple commands.
Index -> General Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
doow




PostPosted: Tue Jan 20, 2009 8:42 pm   Post subject: Two simple commands.

I have to use the commands hasch and getch in the program that I made...and I was wondering if anyone knew what, basically the definition of them are.

Thanks!
Sponsor
Sponsor
Sponsor
sponsor
saltpro15




PostPosted: Tue Jan 20, 2009 9:02 pm   Post subject: RE:Two simple commands.

hasch just detects keyboard input, the syntax looks like this

Turing:

loop
put " hit any key to continue"
if hasch then
exit
end if
end loop


getch is just a get where the user doesn't have to hit the enter key, it justs automatically gets the input once you stop typing
Display posts from previous:   
   Index -> General Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: