#include<stdio.h>
#include<windows.h>
void showmenu()
{
printf("----这是菜单----\n");
printf("1-进入函数\n");
printf("0-退出函数\n");
}
void hanone()
{
printf("这是函数一\n");
system("pause");
return;
}
int main()
{
int select;
while(1)
{
showmenu();
scanf("%d",&select);
switch(select)
{
case 1:hanone();break;
case 0:exit(0);
}
system("cls");
}
}