在C++中,會用extern定義外部變量,我不理解

這個extern到底是幹什麽用的啊?誰能幫我解釋一下啊,多謝。。。

所有跟帖: 

it is used to define a global -pctech- 給 pctech 發送悄悄話 (20 bytes) () 01/05/2005 postreply 10:17:51

就是定義一個全局變量的意思哦。。。 -上課沒聽- 給 上課沒聽 發送悄悄話 (0 bytes) () 01/05/2005 postreply 10:28:51

it is, so you can use it anywh -ere- 給 ere 發送悄悄話 (0 bytes) () 01/05/2005 postreply 10:43:04

請您先登陸,再發跟帖!