我的意思一个函数作为另一个函数的参数.下面怎么会出现:
26 D:\tcwork\人机对弈.c `ia' undeclared (first use in this function)
#include <stdio.h>
#include <conio.h>
int main(void)
{
int Funa(int ia);
int Funb(int ib, int Funa(int ia));
int ia = 5, ib = 10, ic;
ic = Funb(ib, Funa);
printf("ic = %d\n", ic);
getch();
return 0;
}
int Funa(int ia)
{
return ia + 10;
}
int Funb(int ib, int Funa(int ia))
{
return ( ib + Funa(ia) );
}