C问题,不知道错哪里了
程序代码:#include<stdio.h>
int main()
{
void action1(int x,int y),action2(int x,int y);
char ch;
int a=15,b=23;
ch=getchar();
switch(ch)
{
case'a':
case'A': action1(a,b);break;
case'b':
case'B': action2(a,b);break;
default: putchar('\a');
}
return 0;
}
void action1(int x,int y)
{
printf("x+y=%d\n",x+y);
}
void action2(int x,int y);
{
printf("x*y=%d\n",x*y);
}不知道错哪里了第四章4.71.cpp
F:\c代码\第四章4.71.cpp(24) : error C2447: missing function header (old-style formal list?)
Error executing cl.exe.
第四章4.71.obj - 1 error(s), 0 warning(s)









