高手来解决C程序问题
#include "conio.h"#include "stdio.h"
void main(void)
{
clrscr();/*清屏函数*/
textbackground(2);
gotoxy(1, 5);/*定位函数*/
cprintf("Output at row 5 column 1\n");
textbackground(3);
gotoxy(20, 10);
cprintf("Output at row 10 column 20\n");
getch();
}
--------------------Configuration: dk - Win32 Debug--------------------
Compiling...
mm.cpp
c:\program files\microsoft visual studio\myprojects\dk\mm.cpp(5) : error C2065: 'clrscr' : undeclared identifier
c:\program files\microsoft visual studio\myprojects\dk\mm.cpp(6) : error C2065: 'textbackground' : undeclared identifier
c:\program files\microsoft visual studio\myprojects\dk\mm.cpp(7) : error C2065: 'gotoxy' : undeclared identifier
Error executing cl.exe.
dk.exe - 3 error(s), 0 warning(s)
这三个错误就是没有定义这三个变量,问,如何定义这三个变量,是加头文件吧?头文件是什么?高手指点!