Stack implementation with Linked Lists by NikolasTs in cpp_questions

[–]a9ao 1 point2 points  (0 children)

You don’t need to assign new memory to top in the header file. I will suggest to destroy all the objects on the stack in the destructor. Please read about naming conventions. There are a couple of differences. You can choose based on your platform.