64,636
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
#include <array>
using namespace std;
int main()
{
array<int, 10> aryInts;
for (int i = 0; i < 10; ++i)
aryInts[i] = i;
for_each(aryInts.begin(), aryInts.end(), [](const int& d){ cout<<d<<" "; });
return 0;
}