<分区>
Possible Duplicate:
When do I use a dot, arrow, or double colon to refer to members of a class in C++?
当我尝试使用 Class.Variable
访问我的静态变量时,我收到错误消息 Error left of 'Variable' must have class/struct/union
并且当我执行 Class::Variable
我没有收到任何错误。尽管在这两种情况下我都通过智能感知获得了 Variable
。在这种情况下,.
和 ::
之间到底有什么不同?