[此贴子已经被作者于2007-2-10 13:44:20编辑过]
亮哥,大家同乐哈
*=
*= *=
*= *= *=
*= *= *= *=
*= *= *= *= *=
*= *= *= *= *= *=
*= *= *= *= *= *= *=
*= *= *= *= *= *= *= *=
*= *= *= *= *= *= *= *= *=
[此贴子已经被作者于2007-2-11 11:42:16编辑过]
有专门的软件好不好
你们到www.skycn.com去下载
用什么专用软件
直接自己写多好
#include <dos.h>
#include <math.h>
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <time.h>
#include <fcntl.h>
#include <graphics.h>
int HZK_file;
int ASC_file;
void openhzfile()
{
if((HZK_file=open("HZK16",O_RDWR|O_BINARY))==-1)
{
printf("\n\n\t Open HZK16 error!");
getch();
exit(0);
}
if((ASC_file=open("ASC16",O_RDWR|O_BINARY))==-1)
{
printf("\n\n\t Open ASC16 error!");
getch();
exit(0);
}
}
main()
{
FILE *fp;
int i=0 ,j=0 ,k=0;
char bit[32];
unsigned int hzasc=0 ,hzasc2=0 ,qm=0 ,wm=0;
char *hz="奖" ,*kong="" ,*xian="";
openhzfile();
if((fp=fopen("text.txt","wt+"))==NULL)
{
puts("Creat file error!");
getch();
exit(0);
}
rewind(HZK_file);
hzasc = *hz;
hzasc2 = *(hz+1);
qm = (hzasc-0xa1)&0x07f;
wm = (hzasc2-0xa1)&0x07f;
lseek(HZK_file ,(long)(qm*94+wm)*32l ,SEEK_SET);
read(HZK_file ,bit ,32);
for(i = 0;i < 16;i++)
{
fputs("\n" ,fp);
for(j = 0;j < 2;j++)
for(k = 0;k < 8;k++)
if((bit[i*2+j]>>(7-k))&0x01)
{
fputs(xian ,fp);
}
else
{
fputs(kong ,fp);
}
}
}