帮忙调试一下下面的程序,谢谢!
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include <math.h>
main()
{int gdriver = DETECT, gmode, errorcode;
int a,b;
float xm[7][4];
initgraph(&gdriver, &gmode, "c:\\tc20\BGI");
errorcode = graphresult();
if (errorcode != grOk)
{
printf("Graphics error: %s\n", grapherrormsg(errorcode));
printf("Press any key to halt:");
getch();
exit(1);
}
xm[7][4]={{145,132,155,151},{127,155,177,155},
{162,155,127,219},{131,162,172,212},
{183,146,184,201},{203,130,203,223},
{186,210,203,223},
};
printf ( "%s \n", "qing shu ru yi dong de ju li" );
scanf ( "%d","%d",&a,&b);
for (int y=0; y<=10, y++ )
{ for (int i=0; i<4; i++ )
{
for (int j=0; j<7; j++) a[j][i]=+a/10;
i++;
}
for(int i=1; i<4; i++ )
{
for (int j=0; j<7; j++) xm[j][i]=+b/10;
i++;
}
for (int i=0; i<7;i++) line(xm[i][0],xm[i][1],xm[i][2],xm[i][3]);
delay(100);
cleardevice();
}
getch();
closegraph();
return 0;
}
慕慕森
侃侃尔雅
相关分类