討論串[問題] 重複定義的概念
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 10→)留言11則,0人參與, 最新作者POSIX (tedium of chores)時間16年前 (2009/04/14 03:27), 編輯資訊
0
0
0
內容預覽:
void A::ORZ(). {. ~~~~. }. 這就叫definition,. void A::ORZ();. 這叫做declaration. 若硬是要將東西放在.h檔內 只能放這個. 否則必定會multiple definition. 把interface放在test.h檔. =======
(還有284個字)

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者QQ29 (我愛阿蓉)時間16年前 (2009/04/13 16:00), 編輯資訊
0
0
0
內容預覽:
請教各位. 假如我有個test.h寫. class A{. ~~~~~~. void ORZ();. };. void A::ORZ(). {. ~~~~~~~~~~~. }. void XD(). {. ~~~~~~~~~~~~. }. test.cpp include t.h. main.cpp
首頁
上一頁
1
下一頁
尾頁