For Loop:
=== old
????for
(int
i
=
0;
i
<
argCount;
++i)
????{
????????std::cout
<<
arr[i];
????}
=== new
????for
(auto
i:arr)
????{
????????std::cout
<<
i
<<" ";
????}
?
????
时间: 2024-12-28 11:24:06