0

I need a good explain for ( ::) in this code

This code is: https://code.sololearn.com/cmKA9Q2J4uLs/?ref=app

2nd Apr 2019, 11:11 AM
Alireza Abbasi
Alireza Abbasi - avatar
2 ответов
+ 3
It just tells the compiler in which scope to look, thats why it's called the scope resolution operator. A means that A is in the current scope. A::B means that the compiler should look for B inside A A::B::C would mean that the compiler should look for C inside B which is inside A. std::string means that the compiler should look inside std for string.
2nd Apr 2019, 12:52 PM
Dennis
Dennis - avatar
+ 1
Thanks Dennis.
2nd Apr 2019, 12:55 PM
Alireza Abbasi
Alireza Abbasi - avatar