Hi,
I am afraid you cannot use like this way. However, you can use the Array class. For example
Array<vector&> arr(true); // declare an array for vector
for(int ii = 0; ii < nb; ii++) // add nb vectors to the array
{
vector *vv = new vector(); // pointer to a vector
vv->Add(ii+10.0); // do something with the vector
arr.Add(*vv); // add to array
}
for(ii = 0; ii < nb; ii++)
{
vector& v = arr.GetAt(ii); // get vector from array
printf("%f\n", v[0]); // do something...
}
Penn