Your browser does not seem to support CSS. If images appear below, please disregard them.
Topic Options
Rate This Topic
#17292 - 06/17/06 01:39 PM A problem about define~~..
Joined: Jun 2006
Posts: 7
Linus Shen Offline
Junior Member
Linus Shen Offline
Junior Member

Joined: Jun 2006
Posts: 7
China
who can tell differ from "int" and "extern int"? "the C++ Primer" says ,"extern int" is always written in the header files?..
thanks!!


I just love it! KKK...
Top
Sponsored Links
#17293 - 06/18/06 01:12 AM Re: A problem about define~~..
Joined: Feb 2002
Posts: 7,195
Gremelin Offline
Community Owner
Gremelin Offline

Community Owner

Joined: Feb 2002
Posts: 7,195
Portland, OR; USA
I believe that External (or Global) Integers (extern int) are able to be used outside of a function, whereas a standard integer is supposed to be used inside of a function.

(keep in mind, I'm in no way a cpp programmer, i simply know how to google things properly to have a proper outcome)


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
Top
#17294 - 06/18/06 11:21 AM Re: A problem about define~~..
Joined: Jun 2006
Posts: 7
Linus Shen Offline
Junior Member
Linus Shen Offline
Junior Member

Joined: Jun 2006
Posts: 7
China
Also I still haven't really got it,but THANKS indeed!


I just love it! KKK...
Top
#17295 - 06/24/06 08:51 PM Re: A problem about define~~..
Joined: Jun 2006
Posts: 1
nick feng Offline
Junior Member
nick feng Offline
Junior Member

Joined: Jun 2006
Posts: 1
china
extern int a;
means the 'a' was defined in some other files .

Top

Member Spotlight
Crime

Crime
SC, usa
Posts: 506
Joined: March 2002
Show All Member Profiles 
Sponsored Links
Forum Statistics
Forums46
Topics46,477
Posts81,647
Members2,157
Most Online1,567
Apr 25th, 2010
Latest Postings
Top Posters(All Time)
UGN Security 39,641
Gremelin 7,195
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860