[ fromfile: scopestorage.xml id: filevsblockscope ]
We have seen and used the scope resolution operator to extend the scope of a class or access its members with ClassName::.
A similar syntax is used to access the individual symbols in a namespace with NamespaceName::.
C++ also has a (unary) filescope resolution operator, ::, that provides access to global, namespace, or file scope objects from inside an enclosed scope.
The following exercise deals with the use of this operator with various scopes.
| Generated: $Date: 2009-09-08 12:15:32 -0400 (Tue, 08 Sep 2009) $ | © 2009 Alan Ezust and Paul Ezust. |