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
| 50 views
Get it on Google Play Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:162.158.79.105
©2016-2020

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
| 47 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
| 56 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
| 38 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
| 49 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
| 64 views
10,943 questions
124,821 answers
118,847 comments
3,819 users