I have this assignment from my book that wants me to create a class and have its member variables be dynamic. This is easy to do but I can't understand why I would want to, and don't see any advantages of having the members be dynamic. Personally I would create the class (or perhaps an array of class objects) dynamically.
The biggest problem with My C++ book is that the samples and examples are all very unrealistic to real life programming. If the only purpose of the assignment is to familiarize me with using the "new" and "delete" keywords then I have learned very little. Is there a C++ book that is advanced and close to the true programming that is done in the real world?