foreach的用法

Toriyung / 2023-05-27 / 原文

使用迭代器进行循环,类似于python的
for i in I:     %I为迭代器
    pass
    

 

用法

foreach(int i,I)
{  }