程式語言問題 - 考試
By Lauren
at 2013-05-24T23:54
at 2013-05-24T23:54
Table of Contents
請問一下主程式的b2=b1那行是代表b2指向b1的記憶體位置嗎??
但是我列印出來b2還是原本的b2位置耶=.=....
class A{
public:
int x;
protected:
int y;
};
class B:public A{
public:
int z;
};
int main(int argc, char *argv[])
{
A a1;
B b1,b2;
b2=b1;//這行執行是做什麼的??
}
麻煩知道的大大說明一下!感謝><....
--
但是我列印出來b2還是原本的b2位置耶=.=....
class A{
public:
int x;
protected:
int y;
};
class B:public A{
public:
int z;
};
int main(int argc, char *argv[])
{
A a1;
B b1,b2;
b2=b1;//這行執行是做什麼的??
}
麻煩知道的大大說明一下!感謝><....
--
Tags:
考試
All Comments
By Selena
at 2013-05-28T04:52
at 2013-05-28T04:52
By Ida
at 2013-05-31T20:28
at 2013-05-31T20:28
By Robert
at 2013-06-05T13:58
at 2013-06-05T13:58
By Jessica
at 2013-06-09T07:57
at 2013-06-09T07:57
By Ethan
at 2013-06-12T14:26
at 2013-06-12T14:26
By Ophelia
at 2013-06-15T19:27
at 2013-06-15T19:27
By Sandy
at 2013-06-18T02:15
at 2013-06-18T02:15
By Isla
at 2013-06-20T04:16
at 2013-06-20T04:16
By Linda
at 2013-06-24T18:43
at 2013-06-24T18:43
By Ivy
at 2013-06-29T03:52
at 2013-06-29T03:52
By Jacob
at 2013-07-04T00:38
at 2013-07-04T00:38
By Mia
at 2013-07-05T10:18
at 2013-07-05T10:18
By Leila
at 2013-07-07T18:28
at 2013-07-07T18:28
By Ivy
at 2013-07-09T10:06
at 2013-07-09T10:06
By Rachel
at 2013-07-09T19:39
at 2013-07-09T19:39
By Skylar Davis
at 2013-07-10T18:36
at 2013-07-10T18:36
By Doris
at 2013-07-14T06:57
at 2013-07-14T06:57
By Hardy
at 2013-07-18T07:06
at 2013-07-18T07:06
Related Posts
工業工程與管理系可考的國考及國營
By Rosalind
at 2013-05-24T22:54
at 2013-05-24T22:54
102年關務 資料結構
By Hedda
at 2013-05-24T22:15
at 2013-05-24T22:15
有高職生考上行政類嗎
By Gary
at 2013-05-24T20:41
at 2013-05-24T20:41
關於郵局 國營事業的保險身分
By Mason
at 2013-05-24T20:02
at 2013-05-24T20:02
企業管理
By Suhail Hany
at 2013-05-24T18:15
at 2013-05-24T18:15