哪错了?
#include "Conio.h"#include "graphics.h"
#include "dos.h"
#include "stdlib.h"
#define closegr closegraph
void initgr(void) /* BGI初始化 */
{
int gd = DETECT, gm = 0;
registerbgidriver(EGAVGA_driver);
initgraph(&gd, &gm, "");
}
int main(void)
{
int i,j;
initgr(); /* BGI初始化 */
for(i=1;i<=10;i++)
{
setbkcolor(0);
j=random(10);
setcolor(j);
circle(199,299,10*i);
delay(1000);
clrscr();
}
getch();
closegr();
return 0;
}