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

Username:   Password: 
 RegisterRegister   
 got a turing question
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
scott326




PostPosted: Sun Apr 29, 2007 6:33 pm   Post subject: got a turing question

i have a turing test tomorrow.. and I am stuck with one question

What command do you need to test to see if the ENTER key was pressed? (this command works in put lines but not in if lines)

the answers must be either "chr" or "ord".. which one is it??

Thanks guys
Sponsor
Sponsor
Sponsor
sponsor
ericfourfour




PostPosted: Sun Apr 29, 2007 8:40 pm   Post subject: RE:got a turing question

The character for enter is KEY_ENTER or '\n'.
Andy




PostPosted: Sun Apr 29, 2007 8:42 pm   Post subject: RE:got a turing question

either one can be used. look up what they do in the turing references.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: