![]() |
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. |
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. |
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"
|
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
|
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.
|
Re: guys need some help in making a circuit calculator in C##
thanks dawei your a big help thanks!
|
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## ?
|
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.
|
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 02:03. |