What container to use?
Posted on 2003-11-02
Trying to re-learn C++ after several years without coding and got stuck immediately :-)
I am writing a prog which shows the picture of a painting and then people who view this panting will be able to write one single word about that painting. This word can be any of about 100 words offered by the system or a word of their own. There's about 50 different paintings and I have no chance at all to know what word they'll choose to describe each painting if they don't choose one of the "standard" ones.
What I need is a good proposal of how to store these words. Preferably I don't want a list per painting. I want - if possible - one array/container/whatever to store all paintings with their corresponding words.
Also - I don't know how many words will be describing each painting. It can be anything from 10 to 200.
I am setting the points to reply to this quite high to be such a simple question, and I do this since I would appreciate a more thorough reply with code listing or similar.