/////////////////////////////////////////////////// // arrays.cpp - how do I create and use arrays? // /////////////////////////////////////////////////// #include using namespace std; void main() { int iArray[3]; // integer array of 3 elements iArray[0] = 1; // created on main's stack iArray[1] = 0; iArray[2] = -1; cout << "\n iArray[] contents are: " << iArray[0] << ", " << iArray[1] << ", " << iArray[2] << '\n'; // array of C style strings // initialized when declared const int size = 4; char *cstrArray[size] = { "first", "second", "third", "fourth" }; cout << "\n cstrArray[] contents are: "; int i; for(i=0; i