搜索结果

找到约 5 项符合 cols 的查询结果

数学计算 矩阵运算的算法 用Type类数组创建矩阵对象 matrix(int rows,int cols) //创建矩阵,值为0 matrix(int n) //创建单位阵 matrix(c

矩阵运算的算法 用Type类数组创建矩阵对象 matrix(int rows,int cols) //创建矩阵,值为0 matrix(int n) //创建单位阵 matrix(const matrix &) //拷贝构造函数 BOOL Ismatrixf(){ return (rows==cols) } //判断矩阵是否为方阵 modifyrowscols(int rows,int cols) //修改矩阵的行列数 ~matrix() {delete []elems } ...
https://www.eeworm.com/dl/641/175274.html
下载: 149
查看: 1055

Java编程 (1) 设计和编写代表矩阵的Matrix类。该类包括矩阵行列数变量int rows和int cols

(1) 设计和编写代表矩阵的Matrix类。该类包括矩阵行列数变量int rows和int cols,矩阵数据数组double data[][],构造方法Matrix()、Matrix(int rows,int cols)、Matrix(int rows,int cols,double data[][]),获取某元素值的方法getData(int row,int col),设置某元素值的方法setData(int row,int col,double value),计算 ...
https://www.eeworm.com/dl/633/334949.html
下载: 184
查看: 1098

Linux/Unix编程 form = new_form(fields) scale_form(form, &rows, &cols) win = newwin(rows+3, cols+4, 3, 20)

form = new_form(fields) scale_form(form, &rows, &cols) win = newwin(rows+3, cols+4, 3, 20) subwin = derwin(win, rows, cols, 1, 2) set_form_sub(form, subwin) box(win, 0, 0) keypad(win, TRUE) post_form(form) refresh() wrefresh(win) wrefresh(subwin) //设置覆盖模式 ...
https://www.eeworm.com/dl/619/451810.html
下载: 106
查看: 1030

Linux/Unix编程 int show_char(int n, const char *name, chtype code) { const int height = 16 int row = 4 + (

int show_char(int n, const char *name, chtype code) { const int height = 16 int row = 4 + (n height) int col = (n / height) * COLS / 2 mvprintw(row, col, " *s : ", COLS/4, name) addch(code) return n + 1 }
https://www.eeworm.com/dl/619/451808.html
下载: 34
查看: 1158

源码 数组子系统

#include <stdio.h> #include <stdlib.h> #define SMAX 100 typedef struct SPNode { int i,j,v; }SPNode; struct sparmatrix { int rows,cols,terms; SPNode data [SMAX]; }; sparmatrix CreateSparmatrix() { sparmatrix A; printf("\n\t\t请输入稀疏矩阵的行数,列数和非零元素个数(用逗号隔开):"); scanf("%d, ...
https://www.eeworm.com/dl/522521.html
下载: 1
查看: 81