help on turbo c: creating a truth table please..

Reply

Join Date: Jul 2007
Posts: 4
Reputation: black_pulsar_29 is an unknown quantity at this point 
Solved Threads: 0
black_pulsar_29 black_pulsar_29 is offline Offline
Newbie Poster

help on turbo c: creating a truth table please..

 
0
  #1
Jul 16th, 2007
i need to create a turbo c program that enables me to generate a truth table..

the program must be able to compare various relationship such as "AND" "OR" "NEGATION" "double NEGATION"
there is one good example of the program that i need that i saw in this site like this one.. at:

http://www-cs-students.stanford.edu/~silver/truth/


on this site i saw the one that i need.. please help me create one of this on a turbo c program..

if you can lend me some codes thanks!!
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 2,078
Reputation: Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice 
Solved Threads: 142
Team Colleague
Rashakil Fol's Avatar
Rashakil Fol Rashakil Fol is offline Offline
Super Senior Demiposter

Re: help on turbo c: creating a truth table please..

 
2
  #2
Jul 16th, 2007
Well, first, do you know anything about parsing, or just about recursion? Because you'll have to use a bit of that, for your program to understand the expressions the user types in.
All my posts may be redistributed under the GNU Free Documentation License.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,321
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 384
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: help on turbo c: creating a truth table please..

 
0
  #3
Jul 16th, 2007
You need to write your own grammer to parse and evalute the functions. Not necessarily an easy feat in c.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,477
Reputation: jwenting is a name known to all jwenting is a name known to all jwenting is a name known to all jwenting is a name known to all jwenting is a name known to all jwenting is a name known to all 
Solved Threads: 235
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: help on turbo c: creating a truth table please..

 
0
  #4
Jul 16th, 2007
  1. #include stdio.h
42
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,321
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 384
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: help on turbo c: creating a truth table please..

 
0
  #5
Jul 16th, 2007
Originally Posted by jwenting View Post
  1. #include stdio.h
That isn't a standard c header file.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,477
Reputation: jwenting is a name known to all jwenting is a name known to all jwenting is a name known to all jwenting is a name known to all jwenting is a name known to all jwenting is a name known to all 
Solved Threads: 235
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: help on turbo c: creating a truth table please..

 
0
  #6
Jul 16th, 2007
turbo C isn't a standard C compiler
42
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 4
Reputation: black_pulsar_29 is an unknown quantity at this point 
Solved Threads: 0
black_pulsar_29 black_pulsar_29 is offline Offline
Newbie Poster

Re: help on turbo c: creating a truth table please..

 
0
  #7
Jul 16th, 2007
Originally Posted by Rashakil Fol View Post
Well, first, do you know anything about parsing, or just about recursion? Because you'll have to use a bit of that, for your program to understand the expressions the user types in.

i just dont have idea about parsing and even that recursion thing.. i just heard on the 4th years that recursions is for functions and i dont even have idea on using those.. i only have limited resources of syntax with just looping statements, switch, conditional statements, arithmetic operation and one dimentional array thats all my resources and those you've mention are new to me.. and i just want to immitate this site because this is the one that i need,,

http://www-cs-students.stanford.edu/~silver/truth/
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,321
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 384
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: help on turbo c: creating a truth table please..

 
0
  #8
Jul 17th, 2007
>i only have limited resources of syntax with just looping statements, switch, conditional statements, arithmetic operation and one dimentional array thats all my resources and those you've mention are new to me.

Maybe you need to try something easier?
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C Forum


Views: 3231 | Replies: 7
Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC