Results 1 to 18 of 18

Thread: Destructors

Threaded View

  1. #1

    Thread Starter
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location
    192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
    Posts
    3,051

    Destructors

    It's me again.

    Having had trouble with converting an implimentation of a Linked List that stored integers to one that stored dynamic types, i decided to rewrite it from scratch.
    I think i've layed out my code a lot better this time, but i'm not quite sure what i should put in the destructors.
    I'd greatly appreciate it if someone could give me some pointers.

    I've attached the cpp file, as it's a bit big to copy & paste (and the formatting's horrible).

    P.s. at the moment it's a stack, but i'm probably gonna change it so it's a base class, and have stacks, queues and ordered lists inheriting from it (thanks again Cornedbee).
    Attached Files Attached Files
    Quotes:
    "I am getting better then you guys.." NoteMe, on his leet english skills.
    "And I am going to meat her again later on tonight." NoteMe
    "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
    "my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
    Have I helped you? Please Rate my posts.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width