摘要: 构建数组栈类 代码 #include <iostream> using namespace std; // 改变一个一维数组的长度 template<class T> void changeLength1D(T *&a, int oldLength, int newLength) { if (new 阅读全文
posted @ 2022-06-05 21:47 里列昂遗失的记事本 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 对角矩阵类(部分方法C++) 代码 #include<iostream> using namespace std; template<class T> class diagonalMatrix { public: explicit diagonalMatrix(int theN = 10); ~di 阅读全文
posted @ 2022-06-05 20:49 里列昂遗失的记事本 阅读(46) 评论(0) 推荐(0) 编辑