完全可以自己定义一个 #define NULL (void*)(0)
#define NULL (void*)(0)
#ifndef NULL #ifdef __cplusplus #define NULL 0 #else /* __cplusplus */ #define NULL ((void *)0) #endif /* __cplusplus */ #endif /* NULL */
if(curr==NUll||curr->rightChild==NULL)return NULL; 楼主注意拼写啊 curr==NULL 而不是curr==NUll ,看好了 还有 if(curr==NULL||curr->leftChild=NULL) return NULL; 应该是 curr->leftChild == NULL
#define NULL (void*)0
头文件包含错了吧,是#include <stdio.h>什么的 “”表示在当前文件夹啊
69,382
社区成员
243,073
社区内容
加载中
试试用AI创作助手写篇文章吧