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

 what is wrong with my "switch" code? switch (nextItem) { case what is wrong with my "switch" code?

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!