实验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)
推荐(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)
推荐(0)