11 2021 档案
实验4 继承
摘要://Battery.hpp 1 #include<iostream> 2 using namespace std; 3 class Battery{ 4 private: 5 int capacity; 6 public: 7 Battery(int Capacity=70):capacity{Ca 阅读全文
posted @ 2021-11-24 19:50 Ancientwords 阅读(48) 评论(2) 推荐(0)
实验三 类与对象Ⅱ
摘要:#include<iostream> #include<cassert> using namespace std; class vector_int{ private: int q; int *p; public: vector_int(int Q,int P=0); vector_int(cons 阅读全文
posted @ 2021-11-05 16:08 Ancientwords 阅读(62) 评论(2) 推荐(0)