Scope resolution operator?? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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