The use of double colons:: in C++
This article mainly introduces "the usage of double colons:: in C++". In daily operation, I believe many people have doubts about the usage of double colons:: in C++. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about the usage of double colons:: in C++! Next, please follow the editor to study!
Double colons in C++::
The first is class scope, which is used to indicate the variables and functions of the class.
Human::setName (char* name)
The second is the namespace scope, which is used to indicate which namespace the class or function belongs to.
Std::cout