Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started