没啥事用C语言写一个Trie tree玩玩,支持中英文,用g++编译通过

#include <cstdio>  
#include <cstdlib>  
#include <vector>  
  
#define ALPHABETS 2600000  
#define CASE 0  
#define MAX_WORD_SIZE 25  
  
using namespace std;  
  
struct node  
{  
    struct node *parent;  
    struct node *children[ALPHABETS];  
    vector<int> occurrences;  
};  
  
int IsGB(char *pText)  
{  
    unsigned char sqChar[200];  
    sqChar[0] = *pText;  
    if (sqChar[0] >= 0xa1)  
        if (sqChar[0] == 0xa3)  
            return 1; //全角字符  
        else  
            return 2; //汉字  
    else  
        return 0; //英文、数字、英文标点  
}  
  
void insertWord(struct node *trieTree, char *word, int index)  
{  
    struct node *traverse = trieTree;  
  
    while (*word != '