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

Username:   Password: 
 RegisterRegister   
 Yes No command
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
the_scott_mans




PostPosted: Wed Apr 02, 2003 8:27 am   Post subject: Yes No command

Sorry i thought that i found this question on this site and can't seem to find it anymore. How do you use the yes no command thing like

EX.

Done[y/n]

and it has somthing to do with getch
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Wed Apr 02, 2003 9:13 am   Post subject: (No subject)

code:

var c:string(1)

put "done? y/n"
getch(c)

if c=y then
put "you picked yes"
else
put "you picked no"
end if
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
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  [ 2 Posts ]
Jump to:   


Style:  
Search: