# How to implement Truth Table using windows application

Page 1 of 1

## 4 Replies - 7122 Views - Last Post: 23 October 2010 - 12:05 PMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'https://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=195712&amp;s=bcdb8b48e4f260fb7a8454fcd7802249&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 Moslema

Reputation: 0
• Posts: 3
• Joined: 07-January 10

# How to implement Truth Table using windows application

Posted 19 October 2010 - 05:23 AM

Hi every body!!!!!!!!

i need your help in how to implement a truth table(for propositional logic)using windows application
i tried to recieve user statement in a text box (a statement like "A&B<-->c")
but i don't know how to make computer understand it splitted like 'A' is a symbol '&' is an operand and how to make operations in each char alone?????????????

Is This A Good Question/Topic? 0

## Replies To: How to implement Truth Table using windows application

### #2 FlashM

• D.I.C Lover

Reputation: 383
• Posts: 1,195
• Joined: 03-December 09

## Re: How to implement Truth Table using windows application

Posted 19 October 2010 - 05:35 AM

I believe you will need to parse the string in a textbox char by char and look for your operands and operators... Then having some select case statement to determine what it char read will do... something like that... Take a look at how to build a calculator and it might give you some clue or a starting point... You can find lots of tutorials here on our site... If you get stuck, just drop us a line.

### #3 Curtis Rutland

• （╯°□°）╯︵ (~ .o.)~

Reputation: 5106
• Posts: 9,283
• Joined: 08-June 10

## Re: How to implement Truth Table using windows application

Posted 19 October 2010 - 07:00 AM

Flash's suggestion about building a calculator is quite the good one. After all, this is a certain type of calculator anyway, right?

As a side note: Please don't make your posts any harder to read than they need to be. Remember that most of the people you want to help you are professionals, and they are not going to be impressed by different colors and fonts and text alignments.

### #4 Robin19

Reputation: 272
• Posts: 552
• Joined: 07-July 10

## Re: How to implement Truth Table using windows application

Posted 19 October 2010 - 07:02 AM

There is also a tutorial for Reverse Polish Notation. It won't work exactly the way you want it to, but it is a good tutorial in turning text to math.

### #5 Moslema

Reputation: 0
• Posts: 3
• Joined: 07-January 10

## Re: How to implement Truth Table using windows application

Posted 23 October 2010 - 12:05 PM

insertAlias, on 19 October 2010 - 06:00 AM, said:

Flash's suggestion about building a calculator is quite the good one. After all, this is a certain type of calculator anyway, right?

As a side note: Please don't make your posts any harder to read than they need to be. Remember that most of the people you want to help you are professionals, and they are not going to be impressed by different colors and fonts and text alignments.

Thank you "insertAlias" for your advice but sorry i am not very good in english ( )
and i am sorry if i made some trouble here...
and THANKS VERY MUCH TO EVERY ONE HELPS ME

This post has been edited by Moslema: 23 October 2010 - 12:11 PM