Faculty of Engineering and Mathematical Sciences 
Not logged in (login)

help2200


This forum is provided to promote discussion amongst students enrolled in Data Structures and Algorithms (CITS2200).
 
Options:
RSS cloud
Jump to:

lab4 next() implementation

2 of 251 articles shown, currently no other people reading this forum.
photo
From: ANONYMOUS
Date: Fri 27th Mar, 1:56pm
Actions: 
        Login-to-reply
little confused on the specification on the implementation of next() in lab4. say you're given an windowlinked that hasn't been beforeFirst() or afterLast() do we throw an exception or do something similar to previous(), assign it to either first or last anyways.

lab4 next() implementation

photo
From: ANONYMOUS
Date: Sun 29th Mar, 10:16pm
Actions: 
        Login-to-reply
No, I think it would still throw an exception like previous; there's no point in calling next() to a window that isn't even inside the list.
This Page


Program written by: [email protected]
Feedback welcome
Last modified:  8:27am May 24 2020