0

::x what is it mean?

Hello )) in figts i met such a code. what is it mean "cout << ::x" ::x ? p.s. sorry for my eng) https://code.sololearn.com/cad1912qkwm5/?ref=app

16th Nov 2017, 6:32 PM
ŠŠ»ŠµŠŗсŠ°Š½Š“р
4 Answers
+ 1
in your case it accesses the classes x variable instead of the local one
16th Nov 2017, 6:37 PM
Jeremy
Jeremy - avatar
+ 1
yes, now i'm understand. i must read more about scopes thx!
16th Nov 2017, 7:54 PM
ŠŠ»ŠµŠŗсŠ°Š½Š“р
0
to global? before main{}? thx very much
16th Nov 2017, 6:42 PM
ŠŠ»ŠµŠŗсŠ°Š½Š“р