// ***************************************************************** // Author: Zhixiang Chen // Class: CSCI/CMPE 1170, Spring 2009 // Lab Optional 3: Array parametrs to functions // Date: January 17, 2009 // Comment: The code here is meant to be revised. // //----------------------------------------------------------------- // // This lab exercise is to show how array parameters to functions work. // // Compile and run your program. When everything is fine, // print your .cpp and .h files and turn them to me or the TA. // ***************************************************************** #include < iostream > #include #include < string > #include < cstring > #include < cmath> #include #include #include "lab_optional_3_head.h" using namespace std; int main( ) { //define a const array size const int SIZE = 10; //array declaration int numbers[SIZE]; //an int array char charsOne[SIZE], charsTwo[SIZE]; //two char arrays int i; //loop var //initialize numbers for (i=0; i "; cin>>charsOne; //here, we treat chars as a C-string //so that we can use cin to the charsOne cout<<"charOne is " <