Note that
Quote:
int condition1()
{
if (a==0){
b=5;
}
else(a==1)
b=7;
}
......
}
is not valid code. You should write something like
int condition1()
{
if (a == 0)
{
b = 5;
}
else if ( a == 1)
{
b = 7;
}
}
In order to combine two (or more) conditions, there are the logical operators, gently provided by the programming language, see, for instance:
C++ Logical Operators[
^].
For example
if ( a == 0 && b ==5)
{
}