尝试执行此操作时出现此错误:
#include <iostream>
using namespace std;
struct VertexStatus
{
private:
int _CurrentStatus;
public:
static VertexStatus Discovered = new VertexStatus(1); //incomplete type is not allowed
VertexStatus(int iStatus)
{
this->_CurrentStatus = iStatus;
}
};
有什么不对?