更新:原来整的依然有错误,原因是word_count.h的18行多了一个分号,真是手贱作死的节奏啊
头文件如下:
/*************************************************************************
> File Name: word_count.h
> Author: qinf
> Mail:
> Created Time: Mon 24 Mar 2014 08:03:49 PM CST
************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define IN 1
#define OUT 0
#define MAX_LINE (1<<15)
#define LINE_LEN (1<<10)
#define WORD_MAX 100000
#define WORD_SIZE 32;
struct word_count
{
int ch_count;
int word_count;
int line_count;
char *str_txt[MAX_LINE];
char *des_txt[MAX_LINE];
};
typedef