📄 cdzuc24.c
字号:
/*cdzuc24 *.dot ***.txt ***.obj*/
#include"stdio.h"
main(argc,argv)
int argc;
char *argv[];
{
FILE *in,*out,*in1,*in0;
char *buffer,sh;
unsigned int b,c,d,e,s,ch;
long int q,w,i,j;
long int a;
unsigned int seg,offset;
if(argc!=4)
{
printf("You forgot to enter a filename\n");
exit(1);
}
if((in1=fopen(argv[1]/*"cclibj.dot"*/,"rb"))==NULL)
{
printf("connot open SOURSE file");
exit(1);
}
if((in=fopen(argv[2],"rb"))==NULL)
{
printf("cannot OPEN source file");
exit(1);
}
if((in0=fopen("hzk24t","rb"))==NULL)
{
printf("canNOT OPEN source file");
exit(1);
}
if((out=fopen(argv[3],"wb"))==NULL)
{
exit(1);
}
while(!feof(in))
{
ch=getc(in);
if(ch==0x0d)
{
ch=getc(in);
ch=getc(in);
}
if(ch==0x20)
{
ch=getc(in);
}
if(ch<0xb0)
{
q=ch-0xa1;
ch=getc(in);
w=ch-0xa1;
a=(q*94+w)*72;
fseek(in0,a,0);
for(i=0;i<72;i++)
{
ch=fgetc(in0);
putc(ch,out);
}
}
else
{
q=ch-0xb0;
ch=getc(in);
w=ch-0xa1;
a=(q*94+w)*72;
fseek(in1,a,0);
for(i=0;i<72;i++)
{
ch=fgetc(in1);
putc(ch,out);
}
}
}
fclose(in);
fclose(out);
fclose(in0);
fclose(in1);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -