#include #include //for the iomanipulator setw #include using namespace std; int main() { int a[] { 31, // 0 January 28, // 1 February 31, // 2 March 30, // 3 April 31, // 4 May 30, // 5 June 31, // 6 July 31, // 7 August 30, // 8 September 31, // 9 October 30, //10 November 31 //11 December }; int b[12] {}; //Born holding 12 zeros. //Copy all of the values in the array a into the array b, //wiping out the 12 zeros. //I wish we could do this with a loop. In the next example, we will. b[0] = a[0]; b[1] = a[1]; b[2] = a[2]; b[3] = a[3]; b[4] = a[4]; b[5] = a[5]; b[6] = a[6]; b[7] = a[7]; b[8] = a[8]; b[9] = a[9]; b[10] = a[10]; b[11] = a[11]; //Make sure that the 12 values got copied into b. int n {size(b)}; for (int i {0}; i < n; ++i) { cout << setw(2) << i << " " << b[i] << "\n"; } return EXIT_SUCCESS; }