直接用为什么不行?
# include <stdio.h>
typedef struct{
char name[20];
char sex;
}Person;
typedef Person DataType;
typedef struct QNode{
int person;
struct QNode *next;
}QNode,*QueuePtr;
typedef struct{
QueuePtr front;
QueuePtr rear;}LinkQueue;
void DancePartner(Person dancer[],int num)
{
int i;
Person p;
cirqueue *Mdancers,*Fdancers;
InitQueue(&Mdancers);
InitQueue(&Fdancers);————————————————————————————————————
为什么,这样定义后,编译后显示:
undefine symbol 'cirQueue'in fountion DancePartner
undefine symbol 'Mdancers'in fountion DancePartner
undefine symbol 'Fdancers'in fountion DancePartner