|
|
|
|
复制本帖HTML代码
|
高亮:
今天贴
X 昨天贴
X 前天贴
X |
Expert, i have a question on static.
The partial code is as following:
[quote]
// in a class Object
...
private:
typedef void (Object::*Omf) ();
static Omf farray[3];
...
[/quote]
Here i can't understand why "static" is a must?
I have tried to remove "static" but then i get compilation error message:
menu1.cpp:17: 'void (Object::* Object::farray[3]()' is not a static member of 'class Object'
Here static seems not a lifetime issue. Thanks for you enlightenmen.
.
|
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法! |
Never frown even though tomorrow may be grey, may be blue
Who knows who will love your smile in next minute
|
|