dev-c++编译c程序有错误问题 谢谢
#include <stdio.h> #include<conio.h>
main( )
{ int i;
static char str[80];
clrscr( );
for (i=0;i<80;i++)
{ str[i]=getch ( );
printf("*");
if (str[i]=='\x0d') break;
}
i=0;
while (str[i]!='\x0d')
printf("%c",str[i++]);
printf("\n");
getch ( );
}
出现的错误是
编译器: Default compiler
Building Makefile: "C:\Program Files\DEV-CPP\na\Makefile.win"
执行 make...
make.exe -f "C:\Program Files\DEV-CPP\na\Makefile.win" all
gcc.exe -c charprintf.c -o charprintf.o -I"C:/Program Files/DEV-CPP/include"
gcc.exe charprintf.o -o "字符数组.exe" -L"C:/Program Files/DEV-CPP/Lib"
charprintf.o(.text+0x2c):charprintf.c: undefined reference to `clrscr'
collect2: ld returned 1 exit status
make.exe: *** [字符数组.exe] Error 1
执行结束
不清楚为什么 请高手 点 谢谢