We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
原来的代码是: heap.cpp heap->tree = temp 改成 heap->tree = &temp;;//error:temp 这样才不会报错。
heap->tree = temp
heap->tree = &temp;;//error:temp
The text was updated successfully, but these errors were encountered:
这样修改的话在Mac上是不行的,不知道是不是因为cpp的问题,因为tree->temp 本来就是一个指向实际内容的指针的指针,所以用heap->tree = temp应该是对的
在MSVC上的报错是什么呢?
Sorry, something went wrong.
报错为:a value of type "void *" cannot be assigned to an entity of type "void **". 可能是编译器的理解方式不同,暂时没有深入研究。
No branches or pull requests
原来的代码是:
heap.cpp
heap->tree = temp
改成
heap->tree = &temp;;//error:temp
这样才不会报错。
The text was updated successfully, but these errors were encountered: