#include <iostream>
using namespace std;
class base
{
static base* mybase;
};
base::mybase = NULL;
char* str = "hello world";
int main()
{
std::cout<<"hello world"<<std::endl;
return 0;
}
爲什麼代碼行「base :: mybase = NULL」編譯錯誤!靜態成員變量賦值
每當您發佈涉及錯誤疑問,請您收到完整的錯誤消息。 – 2013-03-08 12:44:02