i want to make a two-dimensional array that is consisted by objects but i dont want to initialize the objects when i make the array.. i just want to make an array that each of his "cells" has the size of an object.
For example,
1 2 3 4 5
class Human{
int hm=5;
...
};
and now i want to make a two dimensional array that each "cell" has the size of an Human but not a Human itself.
Sounds like you're trying to build something like std::array<unsignedchar, sizeof(Human)> arr[3][3];
(that is, an array of cells, each the size of a Human), but I have a feeling that all you need is a std::vector<Human>. What is the use case for this?