Switch Case [DOUBT]
I am an absolute novice in programming....but wish to learn. Here is a program I typed using the switch case in C++: #include <iostream> using namespace std; int main() { int age; char gender; cout << "Enter the age...\n"; cin >> age; cout << "Enter the gender...\n"; cin >> gender; switch(age,gender) { case (age<13 && gender==m): cout << "Boy"; break; case (age<13 && gender==f): cout << "Girl"; break; case (age>19 && gender==m): cout << "Man"; break; case (age>19 && gender==f): cout << "Woman"; break; case (age>=13 && age <=19): cout << "Teen"; break; default: cout << "Error"; } return 0; } It is throwing up multiple errors... Please help.