 原来的代码是: heap.cpp `heap->tree = temp` 改成 `heap->tree = &temp;;//error:temp` 这样才不会报错。