这可能是一个非常基本的问题。我读过金丝雀,理论上它们是如何运作的。您有一个全局变量,在函数的prolog中设置为一个随机数,执行您的函数,然后在epilog中验证其真实性。void foobar(int a, int b) prolog(); int d = b; strcpy(stupidcopy);}
我不明白的
TListItemStruct* PrevItem;typedef struct TListItemStruct TListItem;我在几个函数中使用了它但是,当我定义以下变量时:我得到以下错误:
error C2275: 'PListItem' : illegal use of this type as an expression为什么会这样呢?将指针类型的变量