程序运行问题~~
#include <stdio.h>void chuli(void);
void chuli1(void);
void chuli2(void);
int main(void)
{
void(*p[3])(void);
char ch;
p[0]=chuli;
p[1]=chuli1;
p[2]=chuli2;
printf("are yo ok\n");
while(ch=getchar()!='n')
{
switch(ch)
{
case'a':
chuli();
break;
case'b':
chuli1();
break;
case'c':
chuli2();
break;
default:
break;
}
}
return 0;
}
void chuli(void)
{
printf("chuli");
}
void chuli1(void)
{
printf("chuli1");
}
void chuli2(void)
{
printf("chuli2");
}