Computer Science Canada

Boolean Operations

Author:  Paul [ 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

Author:  Tony [ Tue Sep 14, 2004 9:32 pm ]
Post subject: 

expression calculation is really easy in Ruby Laughing


: