error,求教
typedef struct Guest_fi{
Guest_fi(){
name = new char[20];
code = new char[7];
all_citys = new char[11] ;
New_ch = new CHANGE[2];
PP = new Now_state[N];
for(int i = 0 ; i < N ;++i)
{ PP[i].mid_city = new char[N - 1];
PP[i].vech = new char[N - 1];
PP[i].ar_T = -1;
PP[i].st_T = -1 ;
}
fill(all_citys , all_citys + 10 , '\0');
fill(name , name + 19 , '\0');
fill(code , code + 6 , '\0');
choice = '0';
tt = 1111111111 ;
start_time = -1 ;
}
char* name;
char* code;
char* all_citys ;
char choice ;
int start_time ;
time_t tt;
CHANGE * New_ch;
Now_state * PP;
struct Guest_fi*nextPtr;
}GF;
橙色部分的结构是在另外一个头文件中定义的,编译报错,PP未声明,
而CHANGE结构是在GF上方定义,就没有报错.