论坛: 编程破解 标题: 请教tc2。0图形编程 复制本贴地址    
作者: wangdong11 [wangdong11]    论坛用户   登录
# include "graphics.h"
main()
{
initgraph(1,3,4);
setmode(4);/*set the graphics mode*/
setpalette(0,3);/*set the palette to red green,yellow*/
setcolor(2);/*set the color to red*/
circle(10,10,4);/*display the line*/
}
在编译的时候没有问题,但是运行的时候会提示没有initgraph();
谁能给点意见!???????

地主 发表时间: 11/26 21:21

回复: lzg2001 [lzg2001]   论坛用户   登录
是不是你没有把EGAVGA驱动程序装入到你的头文件中?

B1层 发表时间: 11/27 08:43

回复: 286 [unique]   版主   登录
int GraphDriver=DETECT,GraphMode;
initgraph(&GraphDriver,&GraphMode,"");

B2层 发表时间: 11/27 08:50

论坛: 编程破解

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号