图像处理的问题,这段代码执行不了,请高手指点。
#include <dos.h>
#include <math.h>
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <graphics.h>
void main()
{
int Driver,Mode;
Driver = DETECT;
Mode=0;
initgraph( &GraphDriver, &GraphMode, " " );
setcolor(3);
getch();
}
[解决办法]
turbo c么?哪句执行不了亚?
[解决办法]
加system( "pause "),看看什么问题先
[解决办法]
貌似应该是initgraph( &Driver, &Mode, " " );吧,记得不大清楚了。。
[解决办法]
避免在别的机子上不能运行可以这样做:
在命令行中进入TC根目录
输入 BGIOBJ EGAVGA TLIB LIB\GRAPHICS.LIB+EGAVGA
这2个命令将生成图形的连接文件
然后在程序的
initgraph(&driver,&mode, " ");前加入:
registerbgidriver(EVAVGA_driver);