Can some one recommend a good thorough tutorial on pointers and linked lists in C or C++ on the web? I’m having a hell of a time with them. Thanks,
I don’t know of anything on the web but a book called “A Book on C” does a good job of covering this topic, although I found it can be a little deep depending on your experience level.
I found it on Amazon if your interested:
I feel your pain. After taking a course in Data Structures- a forum for the prof to beat students to death with pointers- I finally feel like I have a reasonable amount of control over them. Unfortunately, as I’m sure you are aware, this is one of those issues about C/C++ that drives people completely insane. I never really did find a decent reference that made “real” programming with pointers clear. I learned the subject by using a couple books (a QUE book and the class text) as well as going through countless drills and pointer-riddles with TA’s and the prof. There was also extensive use of the debugger. Steping through unwholesome pointer code and watching the hex addresses change often proved enlightening.
#define ever ;;
Beelzebubba *temp;
temp->currentState = “pointer hell”;
for(ever)
{ attemptToUnderstandPointers(); }