What's used to storage 2d data like this:


ID --- ITEM ------ TYPE ------ PRICE ------ WEIGH
1 ---- hammer ---- 3 ---------- 1300 ------- 67.0
2 ---- sword ------ 2 ---------- 800 --------- 42.0
3 ---- katana ----- 2 ---------- 2200 -------- 21.0

So I can acess it to create objects based on its dates.

What's used to storage 2d data like this:


ID --- ITEM ------ TYPE ------ PRICE ------ WEIGH
1 ---- hammer ---- 3 ---------- 1300 ------- 67.0
2 ---- sword ------ 2 ---------- 800 --------- 42.0
3 ---- katana ----- 2 ---------- 2200 -------- 21.0

So I can acess it to create objects based on its dates.

I guess I'd add a date field, create a struct of the 5(6 if you include date field) data attributes, and create a vector, array, or linked list of that struct, depending on your program's needs.