3 like 0 dislike

根據程式碼註解的說明,完成以下類別宣告的架構:

     class CMouse { // 定義 CMouse 類別

         $1 :       // 設定以下為私有區塊

           int *ix;

         $2 :       // 設定以下為公有區塊

               CMouse();      // 建構元的原型宣告

               ~CMouse(){ delete ix;  }     // 解構元的定義

               friend GetIx();              // 友誼函式函式 GetIx 的原型宣告

     };

       CMouse::CMouse() {       // 建構元的定義

           ix = new int; ix = 1;

     }

 

參考書籍:旗標無痛學習教本

[Normal] Fill in the blank - asked in Introduction to Computer Programming I (C) by (20.9k points)
Available when: Unlimited - Due to: Unlimited
| 12 views
Get it on Google Play Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.68.65.180
©2016-2019

Related questions

3 like 0 dislike
0 answers
[Normal] Fill in the blank - asked Feb 19, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
Available when: Unlimited - Due to: Unlimited
| 11 views
3 like 0 dislike
0 answers
[Normal] Fill in the blank - asked Feb 11, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
Available when: Unlimited - Due to: Unlimited
| 8 views
4 like 0 dislike
0 answers
[Normal] Fill in the blank - asked Feb 11, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
Available when: Unlimited - Due to: Unlimited
| 9 views
3 like 0 dislike
0 answers
[Normal] Fill in the blank - asked Feb 6, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
Available when: Unlimited - Due to: Unlimited
| 11 views
3 like 0 dislike
0 answers
[Normal] Fill in the blank - asked Feb 6, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
Available when: Unlimited - Due to: Unlimited
| 8 views
8,792 questions
72,364 answers
47,172 comments
2,043 users