/* testarr11.cpp CIS 150 06/23/2005 David Klick This program demonstrates the use of an array of strings and parallel arrays. */ #include #include using std::cout; using std::setw; using std::left; const int ARRAY_SIZE = 4; int main(void) { int i; // declare and initialize arrays of names // fname array stores first names // lname array stores last names // These are parallel arrays because the elements // with the same index in each array are related. char fnames[][15] = { "Bob", "Carol", "Ted", "Alice" }; char lnames[][12] = { "Hope", "O'Connor", "Danson", "Springs" }; // display names for (i=0; i