代码改变世界

error: expected specifier-qualifier-list before 'node'

2011-10-24 15:16  诸葛二牛  阅读(507)  评论(0编辑  收藏  举报

The problem is that your structs are unnamed. You need to give them names so you can refer to them within themselves, e.g.

1 typedef struct treeNode{ 
2 char val;
3 struct treeNode *left, *right;
4 } NODE;