C++ 类的抽象初练
摘要:
/* 某商店经销一种货物,货物的购进和卖出以箱为单位,各箱的重量不一样, 因此商店需要目前库存的总重量。 现在用c++模拟商店货物购进和卖出的情况 */ #include using namespace std; //货物类 class Goods{ public: Goods(int w=0){ this->weight = w; } int G... 阅读全文
posted @ 2016-06-23 23:18 寒魔影 阅读(324) 评论(0) 推荐(0)
浙公网安备 33010602011771号