map<string,char* >iterator::iter;
for(iter = CellMap.begin(); iter!= CellMap.end(); iter++)
{
cout<<iter->first<<endl<<iter->second.szMsisdn<<endl;
}
上面错误如下
file.cpp:168: 错误:‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ 使用时未带模板参数
file.cpp:168: 错误:invalid use of qualified-name ‘<declaration error>::iter’
file.cpp:169: 错误:‘iter’ 在此作用域中尚未声明