// \m/etal array #include class Foo { private: int value; public: Foo(int); int GetValue(); }; Foo::Foo(int value) { this->value = value; } int Foo::GetValue() { return this->value; } int main (int argc, char** argv) { Foo** foos = new Foo* [10]; foos[0] = new Foo(0); foos[1] = new Foo(1); foos[2] = new Foo(2); foos[3] = new Foo(3); for(Foo** foo = foos; *foo != NULL; foo++) { std::cout << (*foo)<-GetValue() << std::endl; } }