<< just asking: has anyone yet written some cross-platform array class in
which I can store lists of pointers? Or what ANSI C++ class would I have to
use (vector?) and how?>>
Vectors should do the trick. Of course it depends on how you want to look
things up. If you want to index on strings, I would check out hashmaps.
For vectors you'll want something like:
vector<Ptr> myVector(10);
myVector[2] = somePtr;
Which would give you a ten-element "array". Vectors are actually very close
to arrays, where as "valarray" is more like a vector. Alas...
For hashmaps, you specify an index type, a comparison function, and a data
type to store. Then you use them like arrays:
hashmap<char*, int> someMap;
someMap["someString"] = someNumber;
Hope that helps.
Do you have a good C++ reference? If not, I can give you the nitty gritty
about these classes when you know which you want to use.
Brian