c ++中头文件constrea.h的函数错误

时间:2012-11-15 17:38:00

标签: c++ turbo-c++

我写了一个简单的代码,用c ++打开一个新的屏幕 我正在使用turbo c ++ 4.5 我的代码是:

#include<constrea.h>

void highvideo(void);

int main ()
{
    constream win;

    win.window(1,1,40,20);
    win << "xyz";

    return 0;
}

但是,编译器给出了11个错误:

Error ..\INCLUDE\CONSTREA.H 123: Call to undefined function '_setcursortype' in function conbuf::setcursortype(int)  
Error ..\INCLUDE\CONSTREA.H 129: Call to undefined function 'highvideo' in function conbuf::highvideo()  
Error ..\INCLUDE\CONSTREA.H 135: Call to undefined function 'lowvideo' in function conbuf::lowvideo()  
Error ..\INCLUDE\CONSTREA.H 141: Call to undefined function 'normvideo' in function conbuf::normvideo()  
Error ..\INCLUDE\CONSTREA.H 165: Call to undefined function 'textattr' in function conbuf::textattr(int)  
Error ..\INCLUDE\CONSTREA.H 171: Call to undefined function 'textbackground' in function conbuf::textbackground(int)  
Error ..\INCLUDE\CONSTREA.H 177: Call to undefined function 'textcolor' in function conbuf::textcolor(int)  
Error ..\INCLUDE\CONSTREA.H 183: Call to undefined function 'delline' in function conbuf::delline() 
Error ..\INCLUDE\CONSTREA.H 189: Call to undefined function 'insline' in function conbuf::insline()
Error ..\INCLUDE\CONSTREA.H 201: Call to undefined function 'window' in function conbuf::window(int,int,int,int)
Error ..\INCLUDE\CONSTREA.H 206: Call to undefined function 'textmode' in function conbuf::textmode(int)

显然问题不在代码中。 为什么会发生这种情况。 解决方法是什么。

0 个答案:

没有答案