各位帮帮忙啊--出现request for member "data" in sometihing not a stuct or union
struct tree{int left;
int data;
int right;
};
typedef struct tree treenode;
treenode b_tree[15];
void create_btree(int *b_tree, int *nodelist, int len)
{
int i;
int level;
int position;
b_tree[0].data = nodelist[0];
for (i = 1; i < len; i++){
b_tree[i].data = nodelist[i];