#include "stdafx.h"
#include <array>
#include <iostream>
using namespace std;
using namespace std::tr1;
int _tmain(int argc, _TCHAR* argv[])
{
array<int,9> ints = {1,2,3,4,5,6,7,8,9};
ints[2] = 9;
for_each(ints.begin(), ints.end(), [](int n) { cout << n << " "; });
cout << endl;
system("pause");
return 0;
}