+ 3

Scope resolution operator??

What does a scope resolution operator(::) do? It’s one of the only things in c++ i don’t exactly know.

6th Aug 2019, 12:43 AM
CeePlusPlus
CeePlusPlus - avatar
2 RĂ©ponses
+ 6
Scope resolution operator is used when we want to use an object or namespace For example: If we don't do (using namespace std;), we would need to add (std::) in every objects of standard libraries because std is the namespace of standard.
6th Aug 2019, 1:48 AM
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘äčŸæ˜Ż
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘äčŸæ˜Ż - avatar
6th Aug 2019, 1:53 AM
CeePlusPlus
CeePlusPlus - avatar