1234567891011121314
class a{ private: int x; int y; public: a(int x1, int y1):x(x1),y(y1){} }; class b{ private: a aa[10]; public: b(a z[]):aa(z){} };
1234
for(int i =0; i < 10; i++) { aa[i] = z[i]; }
memcpy(aa,z,sizeof(aa));
std::copy(z, z+10, aa);