And*_*ind 5 c++
例如,x是static在类的定义.我应该这样使用x:
x
static
class_name::x; 而不是instance_of_class.x;
class_name::x
instance_of_class.x;
我的问题是,后者也合法吗?或者只是不正确?
谢谢.
Luc*_*ore 13
这是合法和正确的,但普遍的共识是使用范围解析运算符.
而不是
instance.x
归档时间:
13 年,10 月 前
查看次数:
136 次
最近记录: