Search:

Type: Posts; User: Norm

Search: Search took 0.19 seconds.

  1. Replies
    12
    Views
    1,789

    Re: Homework: Point me in the right direction?

    I suggest you do the insert() and delete() logic first. They will not use a stack. When they are done, then work on the undo() method which will use the stack.
    Example of insert: Given a SS: "asd"...
  2. Replies
    12
    Views
    1,789

    Re: Homework: Point me in the right direction?

    How does the class hold the characters in the SmartString?
    That is what the the toString() method should return, not what is in the stack.


    The stack is for the undo() method. Do that later...
  3. Replies
    12
    Views
    1,789

    Re: Homework: Point me in the right direction?

    I'd say the purpose is to make changes and undo the changes
  4. Replies
    12
    Views
    1,789

    Re: Homework: Point me in the right direction?

    That would be for the undo() part. Leave that until later. Get the insert and delete parts working and then come back to the undo.
    As you do the insert and delete, think about what info you need...
  5. Replies
    12
    Views
    1,789

    Re: Homework: Point me in the right direction?

    The specs talk about the class having methods for inserting Strings and deleting sections. And an undo() method to back out changes.

    It doesn't talk about how to get the current contents of an...
  6. Replies
    12
    Views
    1,789

    Re: Homework: Point me in the right direction?

    What have you tried?
    What specific questions do you have about your assignment?

    Leave the undo() method until last. Get the others to work first. Then work on a design for the undo(). That will...
Results 1 to 6 of 6