an option to goto in this code

case 7:
inventory :
system("title Inventory");
system("cls");
system("color 85");
cout <<"Please input the item of inventory's ID number\n";
cin >> Inumber;
cout <<"Please input the items name\n";
cin >>Iname;
cout <<"Please enter the quantity of " <<Iname<< " in stock\n";
cin >> Iquantity;
cout <<"Please enter the " <<Iname<< " date of expiry\n";
cin >>Idate;
cout <<"Please enter " <<Iname<< " price\n";
cin >>Iprice;
cout <<"Please input the telephone of the supplier\n";
cin >>Iphone;
system ("cls");
system ("pause");
system ("cls");
ag :

cout <<"do you wish to exit the inventory module\n\n choose 1 for yes \n\n 2 for no\n\n 3 to choose another module\n\n";
cin >> funga;
switch (funga)
{
case 1 :
cout <<"bye\n";
system ("cls");
exit (0);
break ;
case 2:
goto inventory;
system ("cls");
break ;
case 3:
system ("cls");
goto palepale;

break ;






THE ABOVE IA A CASE OF MY CODE AM TRYING TO WORK AROUND THE GOTO s ON MY CODE.ANY HELP I NEED IT TO LOOP TO THE BEGINNING OF THE CASE UPON SELECTING 3
1
2
3
4
5
do
{
    PrintMenu();
    cin >> funga
} while (funga != 2);


Or some variant of the above.
lemi try t awt web
thanxx man it soo worked
Topic archived. No new replies allowed.