multidimentional vector
Sorry for the English - I dont have hebrew on this PC... I have a need for a two dimentional array, but with dinamical length (run time). At the moment the code is like that: g_RGBtoHSV[0]=new int[colors]; g_RGBtoHSV[1]=new int[colors]; As you can see - 'colors' is a parameter - the run time dinamicaly size for the arrays. How ever, I would prefer to use a container class if possible, for better security. I know that I can have a two dimentional vector so: vector < vector<int> > g_RGBtoHSV; But how can I determine the size of the vectors? Thanks in advance.