#include<stdio.h>
#include<stdlib.h>
#include<ctype.h>
#include<string.h>
#define M 100
#define N 100
int LineCount=1;
int i=0;
int kind=0;
int idcount=0;
int numcount=0;
char id[M][50],num[N][50];
FILE * fp1,* fp2,* fp3,* fp4,* fp5;
void main()
{
void appendtow(char temp[]);
void appendtoid(char temp[]);
void appendtonum(char temp[]);
void appendtoer(char temp[]);
void print(FILE * fp);
int isid(char temp[]);
char temp[50];
if((fp1=fopen("E:\test.txt","r"))==NULL)
{
printf("cannot open infile");
exit(0);
}
if((fp2=fopen("E:\token.txt","w+"))==NULL)
{
printf("cannot open outfile");
exit(0);
}
if((fp3=fopen("E:\id.txt","w+"))==NULL)
{
printf("cannot open outfile");
exit(0);
}
if((fp4=fopen("E:\num.txt","w+"))==NULL)
{
printf("cannot open outfile");
exit(0);
}
if((fp5=fopen("E:\error.txt","w+"))==NULL)
{