got a turing question
Author |
Message |
scott326
|
Posted: 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

|
|
 |
ericfourfour
|
Posted: Sun Apr 29, 2007 8:40 pm Post subject: RE:got a turing question |
|
|
The character for enter is KEY_ENTER or '\n'. |
|
|
|
|
 |
Andy
|
Posted: 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. |
|
|
|
|
 |
|
|