D
D
( new to C++ )
How does one make an "object" global?
I know from C that you can declare a variable outside
of main and it's global. And all functions are proto'ed and
defined outside of main (and called from within main ).
So now ... in C++ a class that becomes an object has
both variables and functions in it, so exactly what it the syntax
for declaring an "object" global.
How does one make an "object" global?
I know from C that you can declare a variable outside
of main and it's global. And all functions are proto'ed and
defined outside of main (and called from within main ).
So now ... in C++ a class that becomes an object has
both variables and functions in it, so exactly what it the syntax
for declaring an "object" global.