爱问知识人 爱问教育 医院库

深圳罗湖区罗湖大厦的邮政编号是什么??????

首页

深圳罗湖区罗湖大厦的邮政编号是什么??????


        

提交回答

全部答案

    2018-03-07 13:34:15
  •   #include
    using namespace std;
    class Goods
    {
    public:
    Goods(int i);
    void goodsOut();
    int getWeight();
    static int TotalWeight()
    {return totalWeight;}
    private:
    int weight;
    static int totalWeight;
    };
    int Goods::totalWeight=0;//此处先初始化啊,是初始化,就是声明一个变量是要先给个值,你//构//造函数里那不是初始化,是赋值,
    Goods::Goods(int i){totalWeight=0;static totalWeight=i totalWeight;}
    void Goods::goodsOut(){static totalWeight=totalWeight-weight;}
    void main()
    {
    int w;
    cin>>w;
    Goods g1(w);
    cout<}。
      

    黎***

    2018-03-07 13:34:15

类似问题

换一换
  • 生活常识 相关知识

  • 生活
  • 日常生活

相关推荐

正在加载...
最新资料 推荐信息 热门专题 热点推荐
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200

热点检索

  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
返回
顶部
帮助 意见
反馈

确定举报此问题

举报原因(必选):