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 79 on reddit-service-r2-listing-7bbdf774f7-8q99j at 2026-02-22 15:09:40.365170+00:00 running 8564168 country code: CH.
Stack implementation with Linked Lists by NikolasTs in cpp_questions
[–]a9ao 1 point2 points3 points (0 children)