Announcements | Last Post | |
---|---|---|
![]() |
SoC Curricula | 09/30/2017 01:08PM |
![]() |
Demarcation or scoping of examinations and assessment | 02/13/2017 07:59AM |
![]() |
School of Computing Short Learning Programmes | 11/24/2014 08:37AM |
![]() |
Unisa contact information | 07/28/2011 01:28PM |
Assignment 2 malik supplied sources do not compile. May 05, 2008 01:31AM |
Registered: 14 years ago Posts: 29 Rating: 0 |
May 05, 2008 11:00AM |
Registered: 12 years ago Posts: 673 Rating: -1 |
May 05, 2008 11:06PM |
Registered: 12 years ago Posts: 673 Rating: -1 |
Re: Assignment 2 malik supplied sources do not compile. May 05, 2008 11:35PM |
Registered: 14 years ago Posts: 29 Rating: 0 |
May 06, 2008 12:05AM |
Registered: 12 years ago Posts: 673 Rating: -1 |
template<class Type> class linkedListType{ friend ostream& operator<<(ostream& osObject, const linkedListType<Type>& list){ nodeType<Type> *current; //pointer to traverse the list current = list.first; //set current so that it points to //the first node while(current != NULL){ //while more data to print osObject<<current->info<<" "; current = current->link; } return osObject; }And then the operator error goes away (it has something to do with how c++ misunderstands the template definition and thinks that it is something different than it really is, something along those lines)
linkedListType<Type>::before every protected member refered to in orderedLinkedListType.
if(linkedListType<Type>::first == current){ linkedListType<Type>::first = linkedListType<Type>::first->link;
Re: Assignment 2 malik supplied sources do not compile. May 06, 2008 02:06AM |
Registered: 14 years ago Posts: 29 Rating: 0 |
May 06, 2008 11:00AM |
Registered: 12 years ago Posts: 673 Rating: -1 |
Re: Assignment 2 malik supplied sources do not compile. May 11, 2008 04:59PM |
Registered: 11 years ago Posts: 17 Rating: 0 |
May 20, 2008 01:42PM |
Registered: 11 years ago Posts: 423 Rating: 0 |
Re: Assignment 2 malik supplied sources do not compile. June 17, 2008 09:37AM |
Registered: 12 years ago Posts: 387 Rating: 0 |
June 17, 2008 03:29PM |
Registered: 13 years ago Posts: 232 Rating: 0 |
Re: Assignment 2 malik supplied sources do not compile. June 18, 2008 10:49AM |
Registered: 14 years ago Posts: 88 Rating: 0 |
June 19, 2008 08:21AM |
Registered: 11 years ago Posts: 423 Rating: 0 |
Re: Assignment 2 malik supplied sources do not compile. June 20, 2008 09:16AM |
Registered: 14 years ago Posts: 88 Rating: 0 |
Re: Assignment 2 malik supplied sources do not compile. July 09, 2008 04:23PM |
Registered: 12 years ago Posts: 387 Rating: 0 |