我有代码:
#DEFINE NEW = 1;
还有一个结构:
typedef struct PCB
{
/*Process state:new, ready, running, waiting, terminated*/
int state;
}PCB;
如何分配 NEW,使得 state=1?
更多信息,我得到错误:
expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘=’ token
我有代码:
#DEFINE NEW = 1;
还有一个结构:
typedef struct PCB
{
/*Process state:new, ready, running, waiting, terminated*/
int state;
}PCB;
如何分配 NEW,使得 state=1?
更多信息,我得到错误:
expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘=’ token