May 12, 2013 at 12:26am UTC
This Diagram:
http://i40.tinypic.com/i57oz6.png
I dont understand why Class Function Definitions, Class Definition and Global Constants are repeated...
Can anyone please explain?
Also what does it even mean Global Constant? How can a global constant exist inside a header?
Last edited on May 12, 2013 at 12:28am UTC
May 12, 2013 at 12:31am UTC
I've been programming for quite a while and I think I have a fair grip on C++, but I don't understand this diagram either. Perhaps it was shipped with some other literature.
a global constant in a header:
in some .cpp file...
Last edited on May 12, 2013 at 12:38am UTC
May 12, 2013 at 1:23am UTC
what does extern represent?
May 12, 2013 at 1:34am UTC
I think it tells the compiler that the definition of the variable is in another compilation unit. The linker should resolve it.