int mul(int i,int j)
{int k,score=i;
if (j==0) return(1);
else{ for(k=1;k<j;k++)
score=score*i;
return(score);
}
}
main()
{
FILE *fp,*ft;
char cmod[32],point;
int j,i,k,x,y;
long int ch,s,u;
long int v;
if((fp=fopen ("hzk16","rb"))==NULL)
{printf("cannot open charlib file\n");return;}
else
{
ch='汪';
s=ch&255;
u=(ch&65280)>>8;
v=((s-161)*94+(u-161))*32;
fseek(fp,v,0);
for (i=0;i<32;i++)
cmod[i]=fgetc(fp);
}
InitGraph();
setfillstyle(1,7);
for (i=0;i<16;i++)
{
x=100;y=100+i;
for (k=0;k<2;k++)
for (j=0;j<8;j++)
{
point=0;
point=cmod[i*2+k]&mul(2,7-j);
if (point) putpixel(x,y,3);
x++;}
}
/* Quit(); */
}