implicit declaration of function错误求解
#include<stdio.h>void main()
{
void hanio(int,char,char,char);
void move(char a,char b);
int n;
printf("输入盘子的个数\n");
scanf("%d",&n);
hanio(n,'A','B','C');
}
void hanio(int n,char one,char two,char three)
{
if(n==1)
move(one,three);
else
{hanio(n-1,one,three,two);
move(one,three);
hanio(n-1,two,one,three);
}
}
void move(char a,char b)
{
printf("%c-->%c\n",a,b);
}
我用cfree编译出现错误Error] C:\Documents and Settings\Administrator\My Documents\C-Free\Temp\未命名1.cpp:14: implicit declaration of function `int move(...)'
希望高手指导一下