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?
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?