我正在尝试创建我刚刚设置的类的向量,但我不断收到错误。谁能给我一些建议?这是我的相关代码:
class process{
public:
enum state {New,Ready,Running,Waiting,IO,Terminated};
double CPUburst[MAXCPUBURSTS];
double IOburst[MAXCPUBURSTS-1];
int nCPUbursts; // The number of CPU bursts this process actually uses
int priority, type; // Not always used
int currentBurst; // Indicates which of the series of bursts is currently being handled
};
vector<process> processTable;
我得到的错误是:
"template argument for 'template<class _Alloc> class std::allocator' uses local type 'main(int,
char**)::process*'"