请问这句代码错在了哪里?vc++编译无法通过
#include "stdio.h"#include "math.h"
#include "conio.h"
#include "graphics.h"
#include "time.h"
#define P cprintf
void backcolor()
{
int driver=VGA,mode=VGAHI;
initgraph(&driver,&mode,"");
setbkcolor(LIGHTBLUE);
getch();
}
void main()
{
textcolor(12);
P("*-----------------------------------------------------------------------------*\n");
P("*-----------------------------------------------------------------------------*\n");
P("*-------------------------------c语言综合练习程序-----------------------------*\n");
P("*-----------------------------------------------------------------------------*\n");
P("*-----------------------------------------------------------------------------*\n");
}
----------------解决方案--------------------------------------------------------
fatal error C1083: Cannot open include file: 'graphics.h': No such file or directory
经检查graphics.h文件是TC编译器里面的,如果要用VC的话,必须用它自己的图形库。
----------------解决方案--------------------------------------------------------
那它的图形库是什么啊?
----------------解决方案--------------------------------------------------------
没人知道吗?
----------------解决方案--------------------------------------------------------
#include <Windows.h>
----------------解决方案--------------------------------------------------------