
C++
文章平均质量分 74
理论学习
编程实操
面向就业
啊浩浩
IT打杂
展开
-
适配器模式(Adapter模式)详解
适配器模式的详解(Adapter模式)原创 2021-12-19 20:15:31 · 606 阅读 · 0 评论 -
【C++】商品类中,定义和实现 构造函数、析构函数
Product商品类,构造函数、析构函数的定义和实现#include < iostream >#include < cstring >using namespace std;class Product{public:Product(char * n, int p, int q);//构造函数~Product(); //析构函数void get(int q); //显示剩余产品数量void buy(int i); //购买商品private:原创 2021-05-20 01:19:00 · 614 阅读 · 0 评论