smatrix.out

来自「一本全面剖析C++数据结构算法的书籍」· OUT 代码 · 共 50 行

OUT
50
字号
Enter number of rows, columns, and termsEnter row, column, and value of term 1Enter row, column, and value of term 2Enter row, column, and value of term 3Enter row, column, and value of term 4Enter row, column, and value of term 5Enter row, column, and value of term 6Matrix A isrows = 4 columns = 5nonzero terms = 6a(1,3) = 2a(2,5) = 3a(3,1) = 4a(3,4) = 5a(4,2) = 1a(4,5) = 2Enter number of rows, columns, and termsEnter row, column, and value of term 1Enter row, column, and value of term 2Enter row, column, and value of term 3Enter row, column, and value of term 4Enter row, column, and value of term 5Matrix B isrows = 4 columns = 5nonzero terms = 5a(1,2) = 1a(1,3) = 3a(3,1) = 4a(3,2) = 3a(3,4) = -5The transpose of A isrows = 5 columns = 4nonzero terms = 6a(1,3) = 4a(2,4) = 1a(3,1) = 2a(4,3) = 5a(5,2) = 3a(5,4) = 2The sum of A and B isrows = 4 columns = 5nonzero terms = 7a(1,2) = 1a(1,3) = 5a(2,5) = 3a(3,1) = 8a(3,2) = 3a(4,2) = 1a(4,5) = 2

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?