- struct TreeNode
- {
- int value;
- TreeNode* leftChild;
- TreeNode* rightChild;
- }
复制代码
编译错误:error:expected specifier-qualifier-list before ‘TreeNode' 原因是struct没有命名 typedef struct TreeNode - {
- int value;
- struct TreeNode* leftChild;
- struct TreeNode* rightChild;
- }TreeNode;
复制代码
|