Posts by Victor Lelis • 11 points
1 post
-
1
votes1
answer90
viewsQ: Operator overload = in c++
I’m having a problem implementing operator overload = in a heap class. Heap& Heap::operator=(const Heap& outro){ printf("chamei atribuição\n"); this->escreve(); Heap *h = new Heap(outro);…