int main()
{
int iSelect = 1;
while (iSelect != 0)
{
puts("-------Menu-------");
puts("-------Sell------1");
puts("-------Buy-------2");
puts("---Sho2Product---3");
puts("-------Out-------0");
puts("Please select:");
scanf_s("%d", &iSelect);
switch (iSelect)
{
case 1:puts("you are selling to consumer");
break;
case 2:puts("you are buying something into store");
break;
case 3:puts("checking the store");
break;
case 0:puts("The program is out");
break;
default :puts("You put a wrong selection");
break;
}
}
return 0;
}
模拟游戏菜单
最新推荐文章于 2024-07-06 15:15:17 发布