关于头文件的包含的问题
一个头文件poly.h内容
程序代码:#ifndef PLOY_H
#define PLOY_H
#include "list_seq.h"
typedef struct tagpoly
{
int exp;//指数
float coef;//系数
}Poly,PPoly;
typedef struct taghead
{
int max_exp;
int n;//真正有用的数的个数
plist_seq head;
}PolyHead,*PPolyHead;另外一个头文件内容list_seq.h
程序代码:typedef struct tagpoly DATETYPE;
typedef int (*compare)(DATETYPE r_date,DATETYPE d_date);
typedef struct tag_list_seq
{
int max_num;
int num;
DATETYPE *element;
}list_seq,*plist_seq;
编译的时候出现--------------------Configuration: polystudy - Win32 Debug--------------------
Compiling...
list_seq.cpp
c:\documents and settings\administrator\桌面\polystudy\poly.h(15) : error C2146: syntax error : missing ';' before identifier 'head'
这里说明plist_seq没有申明到啊。。。。。
c:\documents and settings\administrator\桌面\polystudy\poly.h(15) : error C2501: 'plist_seq' : missing storage-class or type specifiers
c:\documents and settings\administrator\桌面\polystudy\poly.h(15) : error C2501: 'head' : missing storage-class or type specifiers
Error executing cl.exe.
polystudy.exe - 3 error(s), 0 warning(s)
貌似是头文件的链接出现问题。。。。。
这2个头文件互相包含要怎么处理啊










