Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   guys need some help in making a circuit calculator in C## (http://www.go4expert.com/forums/guys-help-circuit-calculator-c-sharp-t3069/)

 bokiratx 19Feb2007 19:22

guys need some help in making a circuit calculator in C##

guy i really need your help like how can i make a circuit calculator in c##, it goes like this opperator are *=and +=or ang'=not or inverter exaxples here: t*f=f, or F+t=t and F'*t=t,
guys realy need your help i'm so confused and dont know what to do...

thanks.

 DaWei 19Feb2007 23:25

Re: guys need some help in making a circuit calculator in C##

You have your LHS and RHS backwards. C##???

*= and += are merely syntactical shortcuts. A += 5 means A = A+5. Similarly for other operators.

 bokiratx 20Feb2007 16:01

Re: guys need some help in making a circuit calculator in C##

no like asterisc(*) means AND, plus(+) means ARE and appostrophe(') means not its like reading circuit logics or like "The laws of thoughts"

 bokiratx 20Feb2007 16:02

Re: guys need some help in making a circuit calculator in C##

and "f" in the example is false ant "t" in the example is true

 DaWei 20Feb2007 17:29

Re: guys need some help in making a circuit calculator in C##

In C++, logical OR is ||, logical AND is &&, logical NOT is !. There are bit-wise equivalents if you want to operate on bits, |, &, and ~, respectively.

 bokiratx 20Feb2007 19:18

Re: guys need some help in making a circuit calculator in C##

thanks dawei your a big help thanks!

 bokiratx 20Feb2007 19:21

Re: guys need some help in making a circuit calculator in C##

dawei...so what you mean is that i will assign each characters with the characters in c## ?

 DaWei 20Feb2007 22:13

Re: guys need some help in making a circuit calculator in C##

Again, what is C##? I never heard of it. One can make a program that evaluates logic (even hardware logic) in any decent language. The language has to exist, of course, or be invented.

 bokiratx 21Feb2007 06:17

Re: guys need some help in making a circuit calculator in C##

thanx thats C++ sowi

 All times are GMT +5.5. The time now is 07:20.