Posted by: Linus Shen
A problem about define~~.. - 06/17/06 02:39 PM
who can tell differ from "int" and "extern int"? "the C++ Primer" says ,"extern int" is always written in the header files?..
thanks!!
Posted by: Gremelin
Re: A problem about define~~.. - 06/18/06 02:12 AM
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)
Posted by: Linus Shen
Re: A problem about define~~.. - 06/18/06 12:21 PM
Also I still haven't really got it,but THANKS indeed!
Posted by: nick feng
Re: A problem about define~~.. - 06/24/06 09:51 PM
extern int a;
means the 'a' was defined in some other files .