Linked Lists are EAAAAAAASY

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.

  1. // Linked List Requirements!
  2. // 1) Always initialize the head to NULL so you can tell when you're done
  3. // 2) Pointers are your friends if you don't give them stupid names like clPtr
  4. // and stPtr, classPtr and studentPtr are much easier to debug
  5. // 3) P's always end on the next, head always becomes P, null ends that junk!
  6.  
  7. struct fileCabinet{
  8. string folderName;
  9. fileCabinet* nextFile;
  10. };
  11.  
  12. fileCabinet* head, p;
  13. head = NULL;
  14. p = new fileCabinet;
  15. getline(cin, p->folderName);
  16. p->nextFile = head;
  17. 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.