错误修改
include<stdio.h>#include<conio.h>
#include<graphics.h>
main()
{
int a,b,c;
char ch;
void *yuandi;
int size,x=160,y=160;
int x1,y1,x2,y2;
int driver=DETECT,mode;
initgraph(&driver,&mode,"e:\\tc");
setcolor(RED);
setfillstyle(1,2);
bar(160,160,240,240);
setcolor(RED);
setfillstyle(1,6);
circle(200,200,20);
floodfill(200,200,4);
bar(190,195,260,205);
size=imagesize(160,160,260,240);
yuandi=malloc(size);
getimage(160,160,260,240,yuandi);
setfillstyle(0,0);
bar(160,160,260,240);
for(a=0;a<30;a++){
putimage(x,y,yuandi,XOR_PUT);
for(b=0;b<10000;b++)
for(c=0;c<10000;c++);
bar(x,160,100+x,240);
x+=2
getch();
}
}
出现 [Error] invalid conversion from 'int' to 'IMAGE*' [-fpermissive]