Welcome! Log In Create A New Profile

Advanced

Assignment2 Question3

Posted by Wiseguy 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
avatar Assignment2 Question3
February 24, 2009 02:19PM
Consider the scenario where the user would (accidentally) want to split myList at the first node ( info = 34)
Language: C++
myList.splitAt(otherList,34)
According to me myList will be empty and otherList will contain all the nodes in the list.
I prevented this by informing the user that the split cannot be done at the first node because i think this is not what was meant by the question OR am i mistaken?
Do you agree ?
avatar Re: Assignment2 Question3
February 27, 2009 09:19AM
Reply from Lecturer:
Hi 
Sorry for delaying to respond to your question. 
Yes, my list will be empty and  otherlist ={34} 
Masombuka KT
So what this means is that i shouldn't make this an exception.
Mmm....COS211X lecturer responds quickly ??!!grinning smiley
Sorry, only registered users may post in this forum.

Click here to login