Original Post
At first, when I learned about pointers, I said to myself "When am I ever going to use these?" Well, now that I''ve been programming for a while, I think I know why pointers would be useful - but I don''t want to mess with the code I have written so far (at least 10 hours of work). So, I''ll ask a question here to see if what I''m thinking is right.
Let''s say I create a object in one function that is used just to set up character profiles (for a game). Well, after that function is done running - the object is lost. Can I use a pointer (or *gulp* a series of pointers) to keep all of the class information on the freestore? Then when the program exits, have another function remove them from the freestore? Just curious. Thanks