+ 3
Do you mean a switch inside a switch? switch(vehicle_type){ case "bus": cout<<"more than 6 wheels"; break; case "automobile": switch(num_wheels){ case 4: cout<<"it's a car"; break; case 2: cout<<"it's a bike"; break; }; break; }
2nd May 2017, 5:13 PM
Álvaro