josephellengar
November 23rd, 2010, 02:05 AM
Hi! I'm using c++ here.
I can't figure this error out. My program works perfectly when I do not use this class, but this one class claims that the functions that I am testing do not exist:
LinkedListDriver.cpp:22: error: request for member 'addElement' in 'Ross', which is of non-class type 'LinkedList<int>()'
LinkedListDriver.cpp:23: error: request for member 'addElement' in 'Ross', which is of non-class type 'LinkedList<int>()'
LinkedListDriver.cpp:24: error: request for member 'addElement' in 'Ross', which is of non-class type 'LinkedList<int>()'
LinkedListDriver.cpp:25: error: request for member 'addElement' in 'Ross', which is of non-class type 'LinkedList<int>()'
LinkedListDriver.cpp:26: error: request for member 'displayList' in 'Ross', which is of non-class type 'LinkedList<int>()'
LinkedListDriver.cpp:27: error: request for member 'removeElement' in 'Ross', which is of non-class type 'LinkedList<int>()'
LinkedListDriver.cpp:28: error: request for member 'displayList' in 'Ross', which is of non-class type 'LinkedList<int>()'
LinkedListDriver.cpp:30: error: request for member 'nodeArray' in 'Ross', which is of non-class type 'LinkedList<int>()'
LinkedListDriver.cpp:33: error: request for member 'isEmpty' in 'Ross', which is of non-class type 'LinkedList<int>()'
LinkedListDriver.cpp:34: error: request for member 'removeElementFmHead' in 'Ross', which is of non-class type 'LinkedList<int>()'
LinkedListDriver.cpp:35: error: request for member 'displayList' in 'Ross', which is of non-class type 'LinkedList<int>()'
I have made sure that the header file is included. I have checked for spelling and capitalization errors in all of the functino names. I have checked the parameter list. I have checked that the respective functions have good parameters and work on their own. Everything checks out. I just can't figure out what is wrong. Any help would be greatly appreciated. Code attached below.
I can't figure this error out. My program works perfectly when I do not use this class, but this one class claims that the functions that I am testing do not exist:
LinkedListDriver.cpp:22: error: request for member 'addElement' in 'Ross', which is of non-class type 'LinkedList<int>()'
LinkedListDriver.cpp:23: error: request for member 'addElement' in 'Ross', which is of non-class type 'LinkedList<int>()'
LinkedListDriver.cpp:24: error: request for member 'addElement' in 'Ross', which is of non-class type 'LinkedList<int>()'
LinkedListDriver.cpp:25: error: request for member 'addElement' in 'Ross', which is of non-class type 'LinkedList<int>()'
LinkedListDriver.cpp:26: error: request for member 'displayList' in 'Ross', which is of non-class type 'LinkedList<int>()'
LinkedListDriver.cpp:27: error: request for member 'removeElement' in 'Ross', which is of non-class type 'LinkedList<int>()'
LinkedListDriver.cpp:28: error: request for member 'displayList' in 'Ross', which is of non-class type 'LinkedList<int>()'
LinkedListDriver.cpp:30: error: request for member 'nodeArray' in 'Ross', which is of non-class type 'LinkedList<int>()'
LinkedListDriver.cpp:33: error: request for member 'isEmpty' in 'Ross', which is of non-class type 'LinkedList<int>()'
LinkedListDriver.cpp:34: error: request for member 'removeElementFmHead' in 'Ross', which is of non-class type 'LinkedList<int>()'
LinkedListDriver.cpp:35: error: request for member 'displayList' in 'Ross', which is of non-class type 'LinkedList<int>()'
I have made sure that the header file is included. I have checked for spelling and capitalization errors in all of the functino names. I have checked the parameter list. I have checked that the respective functions have good parameters and work on their own. Everything checks out. I just can't figure out what is wrong. Any help would be greatly appreciated. Code attached below.