以下是引用华华世界在2010-4-4 14:56:59的发言:
#include
#include
void
main()
{
int graphdriver=CGA,l;
int graphmode=CGAC0;
initgraph(&graphdriver,&graphmode,"");
cleardevice();
setcolor(1);
line(0,0,100,100);
getch();
setbkcolor(BLUE);
line(20,40,150,150);
getch();
setcolor(0);
line(60,120,220,220);
getch(1);
closegraph();
}
大侠们,帮帮忙,实在找不到错误了,老是编译不起来的啊,帮帮忙…………谢了…………谢了
graphdriver一般用DETECT 吧.
而且graphmode我也没附值就行了啊.
然后就用initgraph(&graphdriver,&graphmode,"");