关于gotoxy(0,0)的问题
#include <graphics.h>
#include<dos.h>
void main()
{
int i,c=4,x=5,y=0;
int gdriver=DETECT,gmode;
initgraph(&gdriver,&gmode,"c:\\tc");
cleardevice();
setcolor(c);
for(i=c;i<c+8;i++)
{
setcolor(i);
rectangle(x,y,x+140,y+10); rectangle(300,0,350,50);
y+=9;
setfillstyle(1,i);
floodfill(x+1,y,i);floodfill(301,1,i);setcolor(WHITE );
gotoxy(0,0);
printf("aaaaaaaaaaaaaaaaa");
sleep(2);
cleardevice();
}
outtextxy(80,400,"Press any key to quit...");
getch();
closegraph();
}
为什么gotoxy(0,0)后的printf函数输出的结果怎么不在左上角呢?
他会随着图形函数的画面变化不断的平移
但是当gotoxy(a,b) (a,b不为0的时候)
printf函数的输出结果就不会动了