Mike Osterhout wrote:THis is where I have hardcoded my original inventory
Thanks for looking into this one, I am totally lost. I was told the garbage collector was a great feature, but it looks like the garbage was brought to the road too soon in this program.
Mike Osterhout wrote:I am not sure if this will help, but this is my complete suboption class.
Mike Osterhout wrote:Ya, I understand that. In my mind I would think that the inventory class would save separately from the menu/selection but it appears that my recursion is causing the inventory to be reset.
Mike Osterhout wrote:
Lastly this is the run class that I think is giving me my issue
When I actually run the program, it reprints the menu twice everytime... This is the same issue that I was having with my option class.
If I can get this figured out, hopeful I can do the same with my option class and I will report back...
Mike Osterhout wrote:so is a while loop what I need in the run class, if so can you show me how that would look?