Array work using C++.