你能帮我理解为什么我不能增加静态变量吗?我面对这个: *error LNK2001: unresolved external symbol "private: static unsigned int Counter::m_curCounters" (?m_curCounters@Counter@@0IA)*
计数器.cpp
#include "counter.h"
static unsigned int m_curCounters = 0;
Counter::Counter(const char* p){
...
m_curCounters++;
}
Counter::Counter(){
...
m_curCounters++;
}