📄 wb3.c
字号:
#include <stdio.h>
#include <stdlib.h>
#include <float.h>
#include <graphics.h>
#include <math.h>
#include <conio.h>
#include <string.h>
#define NG 1
#define OK 0
#define BCD unsigned char
#define CHR unsigned char
#define INT unsigned int
#define PTR long
FILE *stream_father;
FILE *stream_son;
FILE *stream_sonx;
void make_wb3(void);
/*去掉两个汉字对应一个编码的情况*/
/*现在是一一对应的关系*/
void main(void)
{
make_wb3();
}
/****************************************
This sub can get rid of the 2HZ record
skip comnination words.
winwb98.txx==>winwb98.xxx
****************************************/
void make_wb3(void)
{
CHR buf[256];
CHR buf1[256];
CHR i;
stream_father = fopen("winwb98.txx","rt"); /*text*/
if(stream_father ==NULL)
{
printf("Error: winwb98.txx not find!\n");
return;
}
stream_sonx= fopen("winwb98.xxx","wt");
if(stream_sonx==NULL)
{
printf("Error: winwb98.xxx not creat ! \n");
return;
}
while (!feof(stream_father))
{
fgets(buf,200,stream_father);
for(i=0;i<200;i++)
{
if(buf1[i]!=buf[i]) break;
}
if(i!=200) /*diffent*/
{
if(buf[2]<0xa1) /*only one hz*/
{
for(i=0;i<200;i++)
{
buf1[i]=buf[i];
}
fprintf(stream_sonx,"%s",buf);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -