Вот так должно работать:
PHP код:
static void Job11(Args _args)
{
map mapSource1 = new Map(Types::String, Types::Integer);
map mapSource2 = new Map(Types::String, Types::Integer);
map mapDest = new Map(Types::String, Types::Integer);
MapIterator mi;
;
// .. некая инициализация mapSource1, mapSource2 -->
// ..
// .. некая инициализация mapSource1, mapSource2 <--
mi = new mapIterator(mapSource1);
mi.begin();
while (mi.more())
{
if (mapSource2.exists(mi.key()))
{
mapDest.insert(mi.key(), mi.value() + mapSource2.lookup(mi.key()));
}
mi.next();
}
}