|
From: Eric R. <eri...@cl...> - 2006-06-30 20:26:05
|
wHAT?=20
i DONT SEE HOW YOUR SMART REPLY CAN HELP "Children these days!"
----- Original Message -----=20
From: Michael Sutton=20
To: Eric Richards=20
Sent: Saturday, July 01, 2006 7:45 AM
Subject: Re: [Dev-C++] Bitwise
Good Gawd!
Just draw the bloomin' Venn Diagram!
Children these days!
M. Sutton
Eric Richards <eri...@cl...> wrote:
OK thank you for all the feedback
it was interesting seeing this
((a && !b) || (b && !a))
Using truth tables and logic gates I came up with
(in_A||in_B) && !(in_A && in_B)
>From Eric
----- Original Message -----
From: Per Westermark=20
To:=20
Cc: ; Eric Richards
Sent: Friday, June 30, 2006 3:32 AM
Subject: Re: [Dev-C++] Bitwise
Just note that the OP didn't talk about bit-wise and (&) but =
bit-wise
xcor, ie an operator that doesn't have a logical equivalent.
(a ^ b) is definitely shorter than ((a && !b) || (b && !a))
However, when testing two logical variables with boolean values =
(i.e.
always the same non-zero value for true) i't enough to write (a !=3D =
b).
/Per W
On Thu, 29 Jun 2006, Fernando Lichtschein wrote:
> Eric,
>
> By convention, any expression which evaluates to zero is =
considered false,
> and true if it is different from zero.
>
> The comparison operators such as =3D=3D, > or !=3D return 0 if the =
comparison is
> false and 1 if the comparison is true, so doing a bitwise AND =
between the
> two results does not make any difference compared to a logical AND =
(&&)
and
> does not add much to clarity.
>
> Regards,
>
> Fernando
>
>
> On 6/29/06, Eric Richards wrote:
> >
> > Hi all
> > This works but at what problems, Can you use bitwise in a =
if-else or any
> > other program control statement for that matter
> >
> >
> > if (A=3D=3D1 ^ B=3D=3D1)
> > {
> >
> > }
> > else
> > {
> >
> > }
> >
> >
> >
> >
> > // from Eric
> >
> >
> > Using Tomcat but need to do more? Need to support web services,
security?
> > Get stuff done quickly with pre-integrated technology to make =
your job
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on =
Apache
Geronimo
> > =
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D=
121642
> > _______________________________________________
> > Dev-cpp-users mailing list
> > Dev...@li...
> > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> >
>
>
>
> --
> Fernando Lichtschein
> li...@fi...
>
Using Tomcat but need to do more? Need to support web services, =
security?
Get stuff done quickly with pre-integrated technology to make your =
job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache =
Geronimo
=
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D=
121642
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
Using Tomcat but need to do more? Need to support web services, =
security?
Get stuff done quickly with pre-integrated technology to make your =
job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache =
Geronimo
=
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D=
121642
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|