#ifndef DATABASE_H_
#define DATABASE_H_
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <string.h>
typedef struct TreeDataBase{
tree_Node* root;
}tree_DB;
typedef struct tTreeNode {
char *name;
int tableSize;
hash_entry** tableArray;
tree_Node* right;
tree_Node* left;
}tree_Node;
// hash table
//entry:
typedef struct entry_s{
char key;
char *value;
hash_entry* next;
} hash_entry;
#endif
这包含在database.h文件中 当我尝试编译它时,我得到了这些错误:
Description Resource Path Location Type
unknown type name 'tree_Node' database.h /storage/src line 26 C/C++ Problem
unknown type name 'tree_Node' database.h /storage/src line 27 C/C++ Problem
unknown type name 'tree_Node' database.h /storage/src line 18 C/C++ Problem
unknown type name 'hash_entry' database.h /storage/src line 24 C/C++ P roblem
unknown type name 'hash_entry' database.h /storage/src line 37 C/C++ Problem