3作业更改
This commit is contained in:
parent
e826d9d44f
commit
9003a33ecd
1 changed files with 4 additions and 1 deletions
|
@ -18,7 +18,7 @@ int main()
|
|||
v.printall();
|
||||
while (1)
|
||||
{
|
||||
printf("Ñ¡Ôñ²Ù×÷:1.²åÈë 2.ɾ³ý 3.ͳ¼Æ\n");
|
||||
printf("选择操作:1.插入 2.删除 3.统计 4.退出\n");
|
||||
scanf("%d", &flag);
|
||||
|
||||
switch (flag)
|
||||
|
@ -45,6 +45,9 @@ int main()
|
|||
(temp[1] != -1) ? (printf("一共%d个\n", temp[1])) : (printf("无此元素或超出范围\n"));
|
||||
break;
|
||||
|
||||
case 4:
|
||||
return 0;
|
||||
|
||||
default:
|
||||
printf("返回菜单\n");
|
||||
}
|
||||
|
|
Reference in a new issue