thanks Lance Gray, that’s a good idea.
another way, i also want to enumerate a CCDictionary since i don’t known the object in it.
maybe it’s a hard job, or impossible.
i have try to use typeid, like below:
class Diverse : public Base
Base base = new Diverse;
std::cout<P4Diverse**, but it print**P4Base*, i don’t known why…