Your browser does not seem to support CSS. If images appear below, please disregard them.
It appears that you're running an Ad-Blocker. This site is monetized by Advertising and by User Donations; we ask that if you find this site helpful that you whitelist us in your Ad-Blocker, or make a Donation to help aid in operating costs.
Previous Thread
Next Thread
Print Thread
Rate This Thread
#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...
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
Likes: 3
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
#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...
#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 .


Member Spotlight
Gremelin
Gremelin
Portland, OR; USA
Posts: 7,195
Joined: February 2002
Show All Member Profiles 
Forum Statistics
Forums45
Topics47,514
Posts82,684
Average Daily Posts8
Members2,159
Most Online1,567
Apr 25th, 2010
Latest Postings
Top Posters(All Time)
UGN Security 40,678
Gremelin 7,195
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Liked Users (All Time)
§intå× Likes: 1
Cold Sunn Likes: 1
Crime Likes: 1
Cyrez Likes: 1
Ghost Likes: 1
Gremelin Likes: 4
Ice Likes: 1
unreal Likes: 1
Top Liked Users (30 Days)
No Data Found
Powered by UBB.threads™ PHP Forum Software 7.6.0
(Snapshot build 20160902)