Project

I need to write a program for a storage. One thing that the program need to do is clean up the storage from all expired goods. Can someone please help me? I don't want the code..just some explanation.
You'll need to be more specific with what the program needs to do for a better answer, but I'll do my best to help you.


I would create a class that represents whatever item you are keeping track of. I'll pretend it's fruit. You're Fruit class would hold name, fruit type, expiration date, any method functions you might decide are necessary, etc. Then create another class that holds either a vector, map, list, blah, blah, some way to hold a group of fruits. In the new class you can add method functions to create and add new entries to your list of fruit, sort the list of fruit by expiration date, and remove expired fruits from the list.

Hope that was of some help.
Topic archived. No new replies allowed.