Now make the menu of the previous program stay on the screen until the user asks to
Fantastic news! We've Found the answer you've been seeking!
Question:
Now make the menu of the previous program stay on the screen until the user asks to exit using an infinite loop. For that simply enclose the whole code in while(1) loop, as shown in one of the practice tasks above and add a case 6: for exiting.
Hint: Enclose its code in the following while block, Except the declaration and initialization statements.
while (1)
{
system(“cls”);
//adjust that code here, and add a 6th case as shown below
case 6:
exit(0);
}
Related Book For
Systems analysis and design
ISBN: 978-0136089162
8th Edition
Authors: kenneth e. kendall, julie e. kendall
Posted Date: