主题:我是新来的~`大家好~~有个问题想请高手帮个忙~~
最近在自学~~
C语言的图形编程~~
#include<graphics.h>
main()
{
int gdriver,gmode;
initgraph(&gdriver,&gmode,"");
setbkcolor(WHITE);
setlinestyle(0,0,3);
setcolor(BLUE);
circle(100,100,50);
setlinestyle(0,0,3);
setcolor(YELLOW);
circle(170,150,50);
setlinestyle(0,0,3);
setcolor(DARKGRAY);
circle(240,100,50);
setlinestyle(0,0,3);
setcolor(GREEN);
circle(310,150,50);
setlinestyle(0,0,3);
setcolor(LIGHTRED);
circle(380,100,50);
getch();
closegraph();
}
我是用WIN-TC编程的~~
不知道为什么这个程序能编译成功!!
但运行不了`~~
刚一出来就弹回去了~~
还请高手帮个忙哦 `~
先谢了~~
[em4][em4]
C语言的图形编程~~
#include<graphics.h>
main()
{
int gdriver,gmode;
initgraph(&gdriver,&gmode,"");
setbkcolor(WHITE);
setlinestyle(0,0,3);
setcolor(BLUE);
circle(100,100,50);
setlinestyle(0,0,3);
setcolor(YELLOW);
circle(170,150,50);
setlinestyle(0,0,3);
setcolor(DARKGRAY);
circle(240,100,50);
setlinestyle(0,0,3);
setcolor(GREEN);
circle(310,150,50);
setlinestyle(0,0,3);
setcolor(LIGHTRED);
circle(380,100,50);
getch();
closegraph();
}
我是用WIN-TC编程的~~
不知道为什么这个程序能编译成功!!
但运行不了`~~
刚一出来就弹回去了~~
还请高手帮个忙哦 `~
先谢了~~
[em4][em4]