allocated memory in this code?
https://pastebin.com/n9ZMu58F
use valgrind
Simple: when you return something outta pop copy it out of the list and delete the original Complex: when you return something outta pop, move it out of the list if possible and delete it, else copy it out and delete it
You use raii 😒
Обсуждают сегодня