How would you implement a generic stack without using nsmutablearrays?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Something like this I’d think:
MAJOR NOTICE:
This code is BUGGY at the least. ARC and malloc do NOT work well with each other, so take caution to clear your memory before setting a value. Also, please add error checking, as I wrote this in mobile safari, there wasn’t much time for fancy code checks.