hotman+ted+colunga
@戎科1712:c++设计一个矩形类matrix,通过重载运算符“+”、“ - ”、“*”、“~” 来实现矩阵加、减、乘以及矩阵转置 -
宿萍13975477895…… #include#include#include#include using namespace std;#define rep(i,n) for(int i=1;iclass matrix //矩阵(或向量)类 { public:vector > a; //二维向量写法//double **b; //二维指针写法,只要将后文a改为b即可 int row; //行数 int col; //列数 matrix(int ...
@戎科1712:matlab 画两幅图如何拼在一起 -
宿萍13975477895…… 假设彩色图像I1的高宽分别是col1,row1,彩色图像I2的高宽分别是col2,row2, 如果两幅图像左右拼接,col = max(col1,col2),row = row1+row2; I3 = zeros(col,row); I3(1:col1,1:row1,:) = I1; I3(1:col2,row1+1:row1+row2,:) = I2; 如果两幅图像上下拼接,col = col1 + col2,row = max(row1,row2); I3 = zeros(col,row); I3(1:col1,1:row1,:) = I1; I3(col1+1:col1+col2,1:row2,:) = I2;
@戎科1712:短路电流持续时间小于0.1s时导体热稳定的如何校验? -
宿萍13975477895…… 当短路持续时间小于0.1S时,应计入短路电流非周期分量对热作用的影响.应校验K2S2>I2t(I2t为保护电器制造厂提供的允许通过的能量值).以保证电器在分断短路电流前,导体能承受包括非周期分量在内的短路电流的热作用.其中:S绝缘导体线芯截面积mm2,I预期短路电流的有效值A,t在已达到允许最高持续工作温度的导体内短路电流持续作用的时间S,K计算系数,按下表取:工业与民用配电设计手册第11章P585表11-1
@戎科1712:sql 字符串行合并 -
宿萍13975477895…… sqlserver:select co1,stuff((select ','+col2 from tb where co1=t.co1 and col3=t.co3 for xml path('')),1,1,'')col2,col3 from tb t group by co1,col3
@戎科1712:编写用“三元组表”存储稀疏矩阵,进行矩阵处理的程序.实现(1)矩阵转置 (2)矩阵相加 -
宿萍13975477895…… 矩阵加减注意格式 #include <stdio.h> #define maxsize 20 typedef int data; typedef struct { int i,j; data v; }mat; typedef struct { int m,n,t; mat dtt[maxsize+1]; }matrix; matrix a,b,c; void transmat(matrix a,matrix *b) { int p,q,col; b->m=a.n; b->n=a.m; b->t=a....
@戎科1712:如何在hibernate中实现 如下 sql 语句: select * from table1 order by col1+col2 desc; -
宿萍13975477895…… from table1 order by col1+col2 desc;
@戎科1712:编写一个函数,在页面上输出1~1000之间所有能同时被3,5,7整除的整数,并要求每行显示6个这样的数.
宿萍13975477895…… <script type="text/javascript"> col=0; for(var i=1; i<= 1000;i++) { if ( (i%3==0) & (i%5==0) & (i%7==0)) { col=col+1; if (col==7) { document.write("<br>"); col=0; } document.write(" "); document.write(i); } } </script> 晕,等我用PHP写了才发现是要javascript 写的
@戎科1712:编写一个程序,求3*4矩阵每一行与每一列之和 -
宿萍13975477895…… #include<iostream> using namespace std; int main() { int a[3][4],i,j,sumrow=0,sumcol=0; cout<<"请输入一个3*4矩阵"<<endl; for(i=0;i<3;i++) for(j=0;j<4;j++) cin>>a[i][j]; for(i=0;i<3;i++){ sumrow=0; for(j=0;j<4;j++) { sumrow+=a[i][j]; } cout<<"第"<<i...
@戎科1712:vb中如何让数据在datagrid中显示 -
宿萍13975477895…… ' 二维数组 row = 0 for i=lbound(data, 1) to ubound(data, 1) col = 0 for j=lbound(data, 2) to ubound(data, 2) grid.textmetrix(start_row+row, start_col+col) = data(i, j) col = col + 1 next row = row + 1 next' 记录集 row = start_row while (not rst.eof) col = start...
@戎科1712:求24小时时间JS代码 -
宿萍13975477895…… <script language="javascript"><!--//以下是提示显示 function showclock() { var outStr=""; var date = new Date(); var hour = date.getHours(); var min_ = date.getMinutes(); var sec = date.getSeconds(); var col = ":"; var spc = " "; outStr = ...
宿萍13975477895…… #include#include#include#include using namespace std;#define rep(i,n) for(int i=1;iclass matrix //矩阵(或向量)类 { public:vector > a; //二维向量写法//double **b; //二维指针写法,只要将后文a改为b即可 int row; //行数 int col; //列数 matrix(int ...
@戎科1712:matlab 画两幅图如何拼在一起 -
宿萍13975477895…… 假设彩色图像I1的高宽分别是col1,row1,彩色图像I2的高宽分别是col2,row2, 如果两幅图像左右拼接,col = max(col1,col2),row = row1+row2; I3 = zeros(col,row); I3(1:col1,1:row1,:) = I1; I3(1:col2,row1+1:row1+row2,:) = I2; 如果两幅图像上下拼接,col = col1 + col2,row = max(row1,row2); I3 = zeros(col,row); I3(1:col1,1:row1,:) = I1; I3(col1+1:col1+col2,1:row2,:) = I2;
@戎科1712:短路电流持续时间小于0.1s时导体热稳定的如何校验? -
宿萍13975477895…… 当短路持续时间小于0.1S时,应计入短路电流非周期分量对热作用的影响.应校验K2S2>I2t(I2t为保护电器制造厂提供的允许通过的能量值).以保证电器在分断短路电流前,导体能承受包括非周期分量在内的短路电流的热作用.其中:S绝缘导体线芯截面积mm2,I预期短路电流的有效值A,t在已达到允许最高持续工作温度的导体内短路电流持续作用的时间S,K计算系数,按下表取:工业与民用配电设计手册第11章P585表11-1
@戎科1712:sql 字符串行合并 -
宿萍13975477895…… sqlserver:select co1,stuff((select ','+col2 from tb where co1=t.co1 and col3=t.co3 for xml path('')),1,1,'')col2,col3 from tb t group by co1,col3
@戎科1712:编写用“三元组表”存储稀疏矩阵,进行矩阵处理的程序.实现(1)矩阵转置 (2)矩阵相加 -
宿萍13975477895…… 矩阵加减注意格式 #include <stdio.h> #define maxsize 20 typedef int data; typedef struct { int i,j; data v; }mat; typedef struct { int m,n,t; mat dtt[maxsize+1]; }matrix; matrix a,b,c; void transmat(matrix a,matrix *b) { int p,q,col; b->m=a.n; b->n=a.m; b->t=a....
@戎科1712:如何在hibernate中实现 如下 sql 语句: select * from table1 order by col1+col2 desc; -
宿萍13975477895…… from table1 order by col1+col2 desc;
@戎科1712:编写一个函数,在页面上输出1~1000之间所有能同时被3,5,7整除的整数,并要求每行显示6个这样的数.
宿萍13975477895…… <script type="text/javascript"> col=0; for(var i=1; i<= 1000;i++) { if ( (i%3==0) & (i%5==0) & (i%7==0)) { col=col+1; if (col==7) { document.write("<br>"); col=0; } document.write(" "); document.write(i); } } </script> 晕,等我用PHP写了才发现是要javascript 写的
@戎科1712:编写一个程序,求3*4矩阵每一行与每一列之和 -
宿萍13975477895…… #include<iostream> using namespace std; int main() { int a[3][4],i,j,sumrow=0,sumcol=0; cout<<"请输入一个3*4矩阵"<<endl; for(i=0;i<3;i++) for(j=0;j<4;j++) cin>>a[i][j]; for(i=0;i<3;i++){ sumrow=0; for(j=0;j<4;j++) { sumrow+=a[i][j]; } cout<<"第"<<i...
@戎科1712:vb中如何让数据在datagrid中显示 -
宿萍13975477895…… ' 二维数组 row = 0 for i=lbound(data, 1) to ubound(data, 1) col = 0 for j=lbound(data, 2) to ubound(data, 2) grid.textmetrix(start_row+row, start_col+col) = data(i, j) col = col + 1 next row = row + 1 next' 记录集 row = start_row while (not rst.eof) col = start...
@戎科1712:求24小时时间JS代码 -
宿萍13975477895…… <script language="javascript"><!--//以下是提示显示 function showclock() { var outStr=""; var date = new Date(); var hour = date.getHours(); var min_ = date.getMinutes(); var sec = date.getSeconds(); var col = ":"; var spc = " "; outStr = ...