#ifndef DYN_ARRAY // conditional compilation #define DYN_ARRAY template class DynArr { T* arr; // the array itself in form of pointer int size; // size of array char style ; // 'F' for fixed or 'D' for dynamic void Swap(T& a,T& b); public: //constructors //default constructor ,makes an array with 0 elements in it,style dynamic. DynArr(); // constructor with size argument ,makes an array with s elements,style fixed DynArr(int s); // copy constructor DynArr(const DynArr& rhs); // overloading the [] operator instead of get/put functions(apply ) T& operator[](int index); // overloading operator '=' DynArr& operator=(const DynArr& rhs); void SelectionSort(char order='a'); }; typedef DynArr IArray; typedef DynArr FArray; #endif