> 其他 >
C语言实验——矩阵下三角元素之和
输入一个正整数n(1
人气:168 ℃ 时间:2020-04-21 22:48:44
解答
#include
using namespace std;
template
T GetBlowSum(const int n,const int st=0){//0:下三角.非0:上三角
T** p=new T*[n];
T re=T();
for(int i0=0;i0!=n;i0++)
p[i0]=new T[n];
for(int i=0;i!=n;i++){
for(int j=0;j!=n;j++){
cout
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版