So it tells in which scope look for a variable, right?
::x -- variable declared globally
::fooey::x --variable declared in fooey (fooey is declared in global scope)
there is no difference in this case. You use :: if you have a local variabel or a member variabel
with the same name as a global variabel. Then if you use :: before the name you will
use the global variabel. Here is an example with a local and global variabel:
1 2 3 4 5 6 7 8 9 10 11 12
#include <iostream>
usingnamespace std;
int x = 10;
int main()
{
int x = 20;
cout << "Global variabel: " << ::x << endl;
cout << "Local variabel: " << x << endl;
return 0;
}