有关隐式声明
我用gcc编译int getdata(void)
{
int c;
gotoxy(2,4);
do
{
c=getchar();
if(c>='0'&&c<='9')
{
putchar(c);
}
if(c=='\b'&&wherex()>2)
{
putchar(c);
putchar(0x20);
putchar(c);
}
}while(!(c==27||c=='+'||c=='-'||c=='*'||c=='/'||c=='\n'));
operator=c;
if(c!=27&&c!='\n')
putchar(c);
return 0;
}
出现如下错误
calculator.c:2:19: error: curses.h: No such file or directory
calculator.c: In function ‘getdata’:
calculator.c:26: warning: implicit declaration of function ‘gotoxy’
calculator.c:34: warning: implicit declaration of function ‘wherex’
不知如何解决
麻烦了,谢谢