![]() |
||
| |
The scope resolution operator | |
|
Objective
|
Unary form of the scope resolution operator.
The scope resolution operator's unary form is used to access a variable or object that is at external scope and that has been
"hidden" by an identically named variable or object declared at local or class scope.
VMWare, sap, data mining
strategic planning, thin client, firefox-a |
|
int count = 0; //external variable void how_many(double w[], double x, int& count) { for (int i = 0; i < N; ++i) count += (w[i] == x); ++ ::count; //keep track of calls } |
||
|
|
||