头文件里面编译错误:illegal storage class,什么原因?怎么改?
public:int minlen;
unsigned char *patt[MAX_NUM_PAT];
unsigned char pat_len[MAX_NUM_PAT];
unsigned char SHIFT_QS[MAXSHIFT];
struct Pat_List {
int index;
struct Pat_List *next;
} *HASH[MAXHASH], *pt, *qt;
register int Attempts, Matches;
register long duration;
就是对标红的这两行提示错误:
e:\运行\3\iwm\iwm.h(32) : error C2071: 'Attempts' : illegal storage class
e:\运行\3\iwm\iwm.h(32) : error C2071: 'Matches' : illegal storage class
e:\运行\3\iwm\iwm.h(33) : error C2071: 'duration' : illegal storage class
Error executing cl.exe.
求指点……