Your browser does not seem to support CSS. If images appear below, please disregard them.
toggle
May
S M T W T F S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
Sponsored Links
Latest Postings
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,194
Gremelin Offline
Community Owner
Gremelin Offline

Community Owner

Joined: Feb 2002
Posts: 7,194
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
Gremelin

Gremelin
Portland, OR; USA
Posts: 7,194
Joined: February 2002
Show All Member Profiles 
Forum Statistics
Forums46
Topics45,743
Posts80,911
Members2,157
Most Online1,567
Apr 25th, 2010
Top Posters(All Time)
UGN Security 38,907
Gremelin 7,194
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Newest Members
Herbert_Sherbert, codemauve, Lillysdragon1984, Brewwit, boa
2157 Registered Users
Who's Online Now
0 registered members (), 4 guests and 2 spiders.
Latest News