For Loop:
=== old
????for
(int
i
=
0;
i
<
argCount;
++i)
????{
????????std::cout
<<
arr[i];
????}
=== new
????for
(auto
i:arr)
????{
????????std::cout
<<
i
<<" ";
????}
?
????
时间: 2024-10-12 23:50:16