在c ++中的含义 [英] meaning of :: in c++

查看:93
本文介绍了在c ++中的含义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

::在c ++中是什么意思,如下例所示?



Hi, what does "::" mean in c++, as in following example?

setLayout (bb::cascades::ListLayout *layout)

推荐答案

这是目标解析运算符 [ ^ ]。


亲爱的朋友

称为scop resolution,用于访问子class或struc甚至是一个对象项。
dear friend
it called "scop resolution" for accessing to the sub class or struc or even an object items.


在外行的条款中......它将某些东西标识为运营商左侧班级的一个组成部分。



在这个例子中...

In layman's terms... it identifies something as being a component of the class on the left of the operator.

In this example...
bb::cascades::ListLayout



ListLayout 是一个变量/类类型(或结构),标识为 cascades 的一部分,又是 bb 的一部分。


"ListLayout" is a variable/class type (or struct) identified as part of "cascades" which is in turn part of "bb".


这篇关于在c ++中的含义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆