摘要: 创建m行n列矩阵,实现赋值、插入、提取、加法运算符重载。整型与单位阵转换。 matrix.h 1 #include<iostream> 2 using namespace std; 3 4 class Square_matrix{//m行n列 5 public: 6 Square_matrix(in 阅读全文
posted @ 2021-05-14 21:00 satellite& 阅读(103) 评论(0) 推荐(0)
摘要: 题目: 假设square_matrix是n阶整型方阵,请实现下列运算: (1)cin>> square_matrix (2)cout<< square_matrix (3)IntMatrix(n)生成一个n阶单位矩阵 (4)square_matrix+IntMatrix(n) (5)square_m 阅读全文
posted @ 2021-05-14 00:54 satellite& 阅读(329) 评论(0) 推荐(0)