Get the App
SLTechnology News&Howtos  ›  Development  › 

The use of double colons:: in C++

Shulou Source: shulou.com Published: 2022-06-03 19:10:16 11月15日 Update

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

Tags: Functions global colons clocked variables variables learning functions causes names parts files same serial port more space help utility next personal things Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Shulou Tech Info Xiaomi MariaDB OPPO Reno