for loop : C++ and python

后端 未结 3 653
被撕碎了的回忆
被撕碎了的回忆 2021-01-27 20:20

I understand how to use a for loop like

for (x = 0 ; x<5 ; x++ ) { // some_code }

in C++ but what about a for loop like

f         


        
3条回答
  •  鱼传尺愫
    2021-01-27 20:51

    In C++ you can use std::for_each which can be answer for you question. More information you can find here.

提交回复
热议问题