So as the story goes, I was picked for an entry in a school group to do an assignment on C++. I had 20 days to learn as much as I could and complete the assignment. I used up all my time, but the assignment still frustrates me. Anyways, I was just wondering if anyone could point me in the right direction.
Ok, so the assignment went something like this: Your school needs help keeping track of their items, make a program that can provide a list of items. Your program needs to be able to add items, display last item entered, display all items, and display a random item. Needless to say you'll need to have a basic menu and should include exit as an option.
P.S. The assignment is over and this is purely curiosity.
I would go for standard containers: http://www.cplusplus.com/reference/stl/
std::deque can easily add items and allows subscripting and that makes getting a random item really easy
Thank you for the quick reply and I'm sorry for the long delay in response. The code I did write was terrible, and did not complete it's job whatsoever, but thats what I get for trying to learn what I could of c++ in 20 days. Anyways, here is the code:(...