首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

static变量可认为class类型吗,有用过的不

2013-02-27 
static变量可以为class类型吗,有用过的不?static变量可以为class类型吗,有用过的不?我定义了一个class A

static变量可以为class类型吗,有用过的不?
   static变量可以为class类型吗,有用过的不?
我定义了一个class A 然后
static A;居然可以通过,但是定义个类为静态有意义不?
[解决办法]
可以呀,为什么你会觉得不可以呢? 

热点排行