need help compiling this

// Write a nested-if statement that prints an appropriate activity
// depending on "temperature" and "humidity" as recommended in the following
// table

//temperature is humidity is activity is
//
// "warm" "dry" "play tennis"
// "warm" "humid" "swim"
// "cold" "dry" "play basketball"
// "cold" "humid" "watch TV"
//
// Don't do any error checking.
// "warm" "cold" "dry" "humid" are only possible input values.
//Complete the following nested-if statement that prints an appropriate
//activity depending on "temperature" and "humidity" as above.
if ( temperature == "warm")
if (__________________)
cout << "play tennis";
else
______________________
else
if (__________________)
______________________
else
______________________


cout <<"\nFinish running"<<endl;

return 0;
}
rn 0;
}
Books are apparently helpful. They're not just for heating.
are u purposely leaving out a bunch of lines of code? i really cant tell. try re-writing it just as how it would look like when you would compile it if what i said is true :)
Topic archived. No new replies allowed.