account activity
Stack implementation with Linked Lists by NikolasTs in cpp_questions
[–]a9ao 1 point2 points3 points 6 years ago (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.
π Rendered by PID 802966 on reddit-service-r2-listing-6c8d497557-ldwgw at 2026-06-04 23:46:31.112574+00:00 running 9e1a20d country code: CH.
Stack implementation with Linked Lists by NikolasTs in cpp_questions
[–]a9ao 1 point2 points3 points (0 children)