这个东西每次都搞错:
////.h文件
class Node
{
public:
static Node* m_instance;
static Node * getInstance()
};//.cpp
Node * Node::m_instance = NULL;
Node * getInstance()
{
if(Node::m_instance == NULL)
{
Node::m_instance = new Node()
}
return Node:m_instance;
}
//很简单,但是一直都没记住,哎。。。。。