题目:#includeclass goods{private: static int totalweight; int weight;public: goods(int w){ weight=w; totalweight+=weight; } goods(goods&gd){ weight=gd.weight; totalweight+=weight; } ~goods(){ totalweight-=weight; } static int gettotal(){ return totalweight; }};int goods::totalweight=0;void main(){ goods g1(50); cout<
答案:
<查看本题扣3积分>
50
150..... 查看答案
问题答案不对?抱歉,搜索引擎优化导致页面变化,请尝试站内搜索,远程教育试题库