@Disch
Thank you for your help.
This is the assignment question.
Upgrade the class so that operator << and operator >> work well with pointers (that is, FlashDrive *). Youll need to re-overload these operators, adding the function:
Whoops, you actually can overload for pointers because the ostream/istream object isn't a pointer.
My mistake!
That said.... EWWWWW @ This assignment. This is horrible and your teacher is teaching you something terrible. One would expect I/O'ing a pointer to I/O the pointer, and not I/O the data the pointer points to. Sloppy, sloppy, sloppy.
Anyway, the assignment shows you how to overload it. And you seem to be doing it correctly. If you fixed the -> problem, then it looks like you're doing everything except checking for null pointer (which the assignment tells you to do).
If the program is freezing, I couldn't tell you why without seeing updated code.