Question: Design Problem (Class and STL)

I have a design question.
I have table in Data Base with 3 fields. Table X ( Nbr (Unique and unsigned int), Status (int), Customer Name). I have fixed Nbr from <1 - 10 >.

Now I would like to design a class with defined data structure which would help me to keep these 10 records in memory.

Please propose a class design. Use of STL is fine.

Thanks.
Last edited on
Create a data structure (class) for the entry, then use e.g. an STL list or vector to hold them.
Last edited on
Thank you.

I will try to implement Class X{} and use Vector / List to hold them .
Topic archived. No new replies allowed.