如果我有名单,
typedef std::list<MyClass *> listMyClass;
我如何通过这些方法加以利用和掌握这一类方法?
This is what I’ve tried, but that is not it: (MyClass::PrintMeOut() is a public method)
for(
listMyClass::iterator listMyClassIter = listMyClass.begin();
listMyClassIter != listMyClass.end();
listMyClassIter ++)
{
listMyClassIter->PrintMeOut();
}