题目内容
写程序运行结果#include using namespace std;class 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<
查看答案
搜索结果不匹配?点我反馈
更多问题