05 2021 档案
摘要:修正了复制构造函数(这个坑掉过好几次额…) 完善交互 1 //matrix.h 2 #include<iostream> 3 using namespace std; 4 5 class IntMatrix{ 6 public: 7 IntMatrix(int ir,int ic); 8 IntMa
阅读全文
摘要:1 #include<iostream> 2 #include<string> 3 using namespace std; 4 5 class Person 6 { 7 protected: 8 string name; 9 char sex; 10 int age; 11 public: 12
阅读全文
摘要:创建m行n列矩阵,实现赋值、插入、提取、加法运算符重载。整型与单位阵转换。 matrix.h 1 #include<iostream> 2 using namespace std; 3 4 class Square_matrix{//m行n列 5 public: 6 Square_matrix(in
阅读全文
摘要:题目: 假设square_matrix是n阶整型方阵,请实现下列运算: (1)cin>> square_matrix (2)cout<< square_matrix (3)IntMatrix(n)生成一个n阶单位矩阵 (4)square_matrix+IntMatrix(n) (5)square_m
阅读全文

浙公网安备 33010602011771号