1) You posted code without code tags.
2) You're trying to use "delete" in the remove function, when (as far as I can tell) the linked list is currently being allocated on the stack. Which is itself pretty strange.
3) You have indexes hard-coded in the remove function for some mysterious reason.
4) You have not given a sufficient explanation of your goal, difficulty, and specific problem encountered.
sorry about that...I've been playing with this for the last week and am getting frustated. I have changed my remove function several times, some with less errors this is what I have now.
error C2065: 'myPtr' : undeclared identifier
(39) : error C2065: 'client' : undeclared identifier
(40) : error C2065: 'myPtr' : undeclared identifier
(40) : error C2228: left of '.ptr' must have class/struct/union
type is ''unknown-type''
(40) : error C2065: 'client' : undeclared identifier
error C2065: 'client' : undeclared identifier
assignment calls for me to remove one of the structures from the linked list...catch is that I need to take the value of the ptr in the removed structure and replace it with the value of the preceding structure. I believe I would have to delete that structure after doing this.
error C2065: 'myPtr' : undeclared identifier
(39) : error C2065: 'client' : undeclared identifier
(40) : error C2065: 'myPtr' : undeclared identifier
(40) : error C2228: left of '.ptr' must have class/struct/union
type is ''unknown-type''
(40) : error C2065: 'client' : undeclared identifier
error C2065: 'client' : undeclared identifier
Errors talk to you. Listen.
(39) : error C2065: 'client' : undeclared identifier - you didn't declared variable client
(40) : error C2065: 'myPtr' : undeclared identifier - you didn't declared variable myPtr
(40) : error C2228: left of '.ptr' must have class/struct/union - you have used pointer. Use -> instead of . ( or variable isn't declared so linker cannot resolve the member of variable )
(40) : error C2065: 'client' : undeclared identifier - you didn't declared variable client
Bookmarks