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

Username:   Password: 
 RegisterRegister   
 What's the opposite of chars ('b')
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
canmovie




PostPosted: Thu Nov 18, 2010 5:27 pm   Post subject: What's the opposite of chars ('b')

How can I make the following work?

var chars : array char of boolean

loop
if chars not ('b"
put "hello"
end loop

How come this works, but "chars not = ('b')" doesn't work??

if chars ('b') then
loop
put "hello"
end loop
Sponsor
Sponsor
Sponsor
sponsor
TheGuardian001




PostPosted: Thu Nov 18, 2010 5:40 pm   Post subject: Re: What's the opposite of chars ('b')

not chars('b')

chars is an array. when you press b, chars('b') is true. You want not chars('b'), as in chars('b') is false.
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: