+ 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 Antworten
+ 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