The scope resolution operator gets you
out of situations in which the name the compiler chooses by default (the
“nearest” name) isn’t what you want. For example, suppose you
have a structure with a local identifier a, and you want to select a
global identifier a from inside a member function. The compiler would
default to choosing the local one, so you must tell it to do otherwise. When you
want to specify a global name using scope resolution, you use the
operator with nothing in front
of it. Here’s an example that shows global scope resolution for both a
variable and a function: