foreach not recognized in C++

前端 未结 9 1391
离开以前
离开以前 2021-01-21 08:07

In my the cs106b book we use the expression \"foreach\" to go through a list of words in a Map. I implemented the code and banged my head against the wall facing mysterious erro

9条回答
  •  天命终不由人
    2021-01-21 08:37

    Try iterating through the size of the map.

    for(int i=0;i

    Replace MAP with your map object.

    Good luck!

    Regards,
    Dennis M.

提交回复
热议问题