How to do this question?

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: How to do this question?

  1. #1
    Join Date
    Sep 2004

    How to do this question?

    You are supposed to implement a dynamic stack that make use of single link list of number type.
    a) i) Declare a class NumberNode which contains 2 members. First member is datum if integer type, and second member link which reference to next number in the link list.
    ii) Implement the constructor to initialise the data.
    iii) Implement all the accesor, and mutator methods found in the class
    b) i) Declare a class PowerStack which contains a member top which reference to the top element in the power stack.
    iv) Implement a method push to add a new item to the stack
    v) Implement a method PrintAll which will display all the data found in the stack
    vi) Implement another method which can be use to manipulate the data in the stack.

  2. #2
    Join Date
    Sep 2004
    Sounds like a homework assignment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center