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

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




PostPosted: Tue Sep 14, 2004 9:04 pm   Post subject: Boolean Operations

As I was going through my computer engineering thingy, boolean operations, y'know that one that has AND, NOR, OR, NOT and stuff? I thought it'd be useful to make a program that would accept whole lines of this stuff, brackets included and then get a result from it.

From my 2 min of thinking, I'm thinking to make functions (which I don't fully know how to use yet, which is a reason for thinking about this program) for AND, NOR, OR and NOT that would give u a result from 2 values.

and also to recognize brackets and use string manipulation and if statements to actually get the values and set up some kind of order of operations.

Thinking about it, it doesn't seem that hard, but then, so are all my ideas, and half of them end up unfinished. So... any pointers at my ideas/ suggestions, I'm prolly not gonna make this now, but I'm thinking sometime in the near future.

Oh yea, this'll be my first non-game-animation program I think... done in my leisure, so bear with my simple ideas Razz
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Tue Sep 14, 2004 9:32 pm   Post subject: (No subject)

expression calculation is really easy in Ruby Laughing
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: