高手指点一下吧!vc6.0中在c语言中已经加入了#include <conio.h>为什么clrscr();函数还是不能用呢??

来源:百度知道 编辑:UC知道 时间:2024/05/31 22:41:33
高手指点一下吧!vc6.0中在c语言中已经加入了#include <conio.h>为什么clrscr();函数还是不能用呢??
错误提示是:: error LNK2001: unresolved external symbol _clrscr
Debug/Cpp2.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Cpp2.exe - 2 error(s), 0 warning(s)
谢谢各位

Microsoft Visual C++ 6.0没有这个函数。
清屏的话
可以用system("cls");

clrscr()是Turbo C里面的,VC++没有这函数。
但你可以用“dos.h”中的system("")//像系统发送命令。

system("cls");//清屏。

clrscr()是Turbo C里面的,VC++没有这函数;