当前位置: 代码迷 >> C语言 >> 高手帮忙解决TC3.0的一个问题
  详细解决方案

高手帮忙解决TC3.0的一个问题

热度:209   发布时间:2005-09-22 00:55:00.0
高手帮忙解决TC3.0的一个问题

#include<graphics.h> #include<conio.h> #include<dos.h>

void DrawWin(int WINX,int WINY,int WINWIDE,int WINHIGHT) //draw main frame of program { setcolor(WHITE); moveto(WINX+WINWIDE,WINY); lineto(WINX,WINY); lineto(WINX,WINY+WINHIGHT); moveto(WINX+WINWIDE-1,WINY+1); lineto(WINX+1,WINY+1); lineto(WINX+1,WINY+WINHIGHT-1); setcolor(DARKGRAY); moveto(WINX+1,WINY+WINHIGHT); lineto(WINX+WINWIDE,WINY); moveto(WINX+2,WINY+WINHIGHT-1); lineto(WINX+WINWIDE-1,WINY+WINHIGHT-1); lineto(WINX+WINWIDE-1,WINY+1); setfillstyle(SOLID_FILL,LIGHTGRAY); bar(WINX+2,WINY+2,WINX+WINWIDE-2,WINY+WINHIGHT-2); setcolor(DARKGRAY); moveto(WINX+WINWIDE-10,WINY+60); lineto(WINX+10,WINY+60); lineto(WINX+10,WINY+WINHIGHT-20); setcolor(WHITE); lineto(WINX+WINWIDE-10,WINY+WINHIGHT-20); lineto(WINX+WINWIDE-10,WINY+60); }

void main() { int driver=DETECT,mode; int NUM;

registerbgidriver(EGAVGA_driver); initgraph(&driver,&mode,""); DrawWin(200,250,250,100); setcolor(BLUE); outtextxy(210,320," Press any key to EXIT... ... "); getch(); closegraph(); } 这个程序时在树上下载的,文身么在TC3.0和BC上都不能连接呢? 编译都是对的啊!!!! 我得设置错了吗? 比如我得TC安装在 d盘根目录!!!! 、、帮忙解决啊!!! 急!!!


----------------解决方案--------------------------------------------------------
  相关解决方案