for 循环的 n 种用法

· · 个人记录

1.for(int i=0;i<n;i++)

2.for(元素类型 变量名:迭代对象)

3.for(元素类型 &变量名:迭代对象)

~n=3~