// A main program to test the member functions of the class // int_array. You should make a habit of doing this to ensure that // each class you write is working correctly. #include using namespace std; #include "t_array.h" int main() { t_array foo(15); t_array bar(20, -1); t_array copied(12); cout << "foo's size: " << foo.size() << endl; cout << "bar's size: " << bar.size() << endl; cout << "bar[18] = " << bar[18] << endl; bar[13] = 8; cout << "bar[13] is now " << bar[13] << endl; for ( int i=0; i