帮忙看看是哪里的错误,大哥!
#include "graphics.h"
#include "conio.h"
#define PATH "c:\\turboc2"
main()
{int i,gdriver=VGA,gmode=VGAHI;
void change();
unsigned c[16]={0x0004,0x3ffe,0x00c0,0x00c0,0x00c0,0x08c0,0x08c8,0x0cfc,\
0x0cc0,0x0cc0,0x0cc,0x0cc0,0x0cc0,0x0cc2,0x7fff,0x0000};
initgraph(&gdriver,&gmode,PATH);
change(c);
for(i=0;i<16,i++)
{ setlinestyle(4,c[i],1);
line(0,i,15,i);
}
getch();
closegraph();
}
void change(unsigned *p)
{ unsigned a,b,i,j;
for(i=0;i<16;i++)
{a=0;b=1;
for(j=0;j<16;j++)
{a<<=1;
if((*(p+i)&b)==1)a|=b;
*(p+i)>>=1;
}
*(p+i)=a;
}
}