Welcome! Log In Create A New Profile


Error in source code?

Posted by Deon5882 
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
Error in source code?
August 29, 2013 02:06PM
Hi all when I try to run my linkedList test program I keep getting a error in the unordered and ordered linked list header files
line 54: 'first was not declared in this scope. has anyone else had this issue?
avatar Re: Error in source code?
August 29, 2013 02:35PM
Its no good fighting against your compiler. If it requires "first" to be declared, then declare it.

You should have "first" declared as a pointer to nodeType<Type> in class linkedListType.

nodeType<Type> *first;

class unorderedLinkedList is derived from class linkedListType.
avatar Re: Error in source code?
August 30, 2013 08:08AM
Just remembered something else -

The examples in the textbook were done with MS Visual Studio, you need to make some changes to run them on other compilers.
Unfortunately I did COS2611 a while ago and I can't remember what those changes are.
Re: Error in source code?
September 03, 2013 12:41PM
the solution was to add this-> before all occurances of first last and count... I didn't read the errata in tutorial letter 101 before starting...
Sorry, only registered users may post in this forum.

Click here to login