As long as you've previously slaved over debugging one for an entire day in the past. This week I employed the internet and my college's Comp Sci department website in boosting my C++ proficiency. Thanks to a few helpful PDF files, I've been able to maintain control over my assignments, versus them eating me alive.
// Linked List Requirements! // 1) Always initialize the head to NULL so you can tell when you're done // 2) Pointers are your friends if you don't give them stupid names like clPtr // and stPtr, classPtr and studentPtr are much easier to debug // 3) P's always end on the next, head always becomes P, null ends that junk! struct fileCabinet{ string folderName; fileCabinet* nextFile; }; fileCabinet* head, p; head = NULL; p = new fileCabinet; getline(cin, p->folderName); p->nextFile = head; head = p;
Just like that. Easy. Right? Mmmhmm
I updated the helpful resources section. Although I highly doubt I'll ever get enough traffic to congregate here, I am weary of linking to the PDF files from my school. Err on the safe side, find them yourself.
