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

Username:   Password: 
 RegisterRegister   
 Huh?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
TheXploder




PostPosted: Sun Jan 16, 2005 4:17 pm   Post subject: Huh?

I got a question is there any good way to use this I mean if you write;
put phrase (i) = " "
it outputs true if there is a " " and false when there isn't now how could I use that. To bad you can't do something like: if phrase (i) = " " //action
that all on one line.

code:

var phrase : string
get phrase:*

for i : 1 .. length (phrase)
    put phrase (i) = " "
end for
Sponsor
Sponsor
Sponsor
sponsor
Bacchus




PostPosted: Sun Jan 16, 2005 4:47 pm   Post subject: (No subject)

couldnt you just do an if?
like: arnt
put phrase(i)=" "
and
if plrase(i)=" "
the same, and then you can accually put something in the if
TheXploder




PostPosted: Sun Jan 16, 2005 4:53 pm   Post subject: (No subject)

well the point is that I don't what to do the whole if structure;
that way I'd save a lot more space.
Bacchus




PostPosted: Sun Jan 16, 2005 5:24 pm   Post subject: (No subject)

well then im not sure if u can, y not make a function to do it for you then
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  [ 4 Posts ]
Jump to:   


Style:  
Search: