阅读背景:

一个类的静态函数可以访问全局静态变量吗?

来源:互联网 
/*In header file */
class abc{
public:
static bool do_something();

}

/*In other file */
static bool isvalid=false; //global variable

bool abc::do_something()
{
return isValid;
}
/*In header file */
class abc{
public:
static b



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: