- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
typedef map<string,string> keys_map;
...
const keys_map::const_iterator SectionData::operator[](int Index) const
{
keys_map::const_iterator it=m_Keys.begin();
int cnt=0;
for(;it!=m_Keys.end(); it++)
{
if(cnt==Index)
return it;
cnt++;
}
return (keys_map::const_iterator)NULL;
}
...
SectionData section;
keys_map::::const_iterator iter;
for (i=0; i<section.GetSize(); i++) {
iter = section[i];
...
}
Dummy00001 16.08.2013 18:26 # +2
bormand 17.08.2013 06:47 # 0