一雏数组公共操作的实现 template <class Type> void Array<Type>:getArray o& /私有函数:创建数组存储空 elements new Type[Array Size]: if (elements ==0) cerr << Memory allocation Error/ <Kendl.template <class Type> void Array<Type>::getArray ( ) { //私有函数:创建数组存储空间 elements = new Type[ArraySize]; if ( elements == 0 ) cerr << "Memory Allocation Error" <<endl; } 一维数组公共操作的实现