Question: why my switch statement is wrong? switch (nextItem) { case 1: Pizza p1 = Pizza: size: personal; // append address of p to the list
why my switch statement is wrong?

switch (nextItem) { case 1: Pizza p1 = Pizza: size: personal; // append address of p to the list order.push_back(&p1), break; case 2: Pizza p2 = Pizza: size: medium; // append address of p to the list order.push_back(&p2); break; O Cannot jump from switch statement to this case label O Cannot jump from switch statement to this case label case 3: Pizza p3 - Pizza: size::large; // append address of p to the list order.push_back(&p3); break; O Cannot jump from switch statement to this case label Cannot jump from switch statement to this case label 0 Cannot jump from switch statement to this case label Pizza p4 = Pizza::size::family; // append address of p to the list order.push_back(&p4 ) ; break; Case 5: break; case 6: break; case 7: break; case 8: break; case 9: break; case 10: break; 0 Cannot jump from switch statement to this case label 0 Cannot jump from switch statement to this case label O Cannot jump from switch statement to this case label O Cannot jump from switch statement to this case label O Cannot jump from switch statement to this case label default: cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
