摘要:
构建数组栈类 代码 #include <iostream> using namespace std; // 改变一个一维数组的长度 template<class T> void changeLength1D(T *&a, int oldLength, int newLength) { if (new 阅读全文
摘要:
对角矩阵类(部分方法C++) 代码 #include<iostream> using namespace std; template<class T> class diagonalMatrix { public: explicit diagonalMatrix(int theN = 10); ~di 阅读全文