求助!!!
我的程序一运行就这样:
#include"graphics.h" #include"stdio.h"
main() {int gdriver=EGA,gmode=EGAHI; int errorcode; detectgraph(&gdriver,&gmode); registerbgidriver(EGAVGA_driver); initgraph(&gdriver,&gmode,"d:\\tc\\text"); errorcode=graphresult(); clrscr(); if (errorcode!=grOk) {printf("Graphics error:%s\n",grapherrormsg(errorcode)); printf("Pess any key to halt:"); getch(); exit(1); } circle(100,100,50); getch(); closegraph(); }
到底是为什么呀?我苯,还请大虾指教!!!