-3

我有代码:

#DEFINE NEW = 1;

还有一个结构:

typedef struct PCB
{

 /*Process state:new, ready, running, waiting, terminated*/
 int state;
 }PCB;

如何分配 NEW,使得 state=1?

更多信息,我得到错误:

expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘=’ token
4

1 回答 1

1

删除分号和=

#DEFINE NEW 1

于 2013-02-27T16:42:04.693 回答