Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ If statements

Name: Anonymous 2008-03-15 6:49

I started reading a C++ book today and I've got a question for all you expert programmers:
is it possible to include AND\OR in IF statements?
For example, something like this:

if (variable1 = variable2) or (variable1 = variable3)
    cout<<"whatever";

If so, how?
Or is that just not part of the language?

Name: Anonymous 2008-03-15 9:59

>>11
a XOR b is equivalent to !(!(a || b) || (a && b)).

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List