Home > Back-end >  C chain queue
C chain queue

Time:09-16

Typedef struct Qnode {
QElemType;
Struct Qnode * next;
} Qnode, QueuePtr;
Typedef struct {
QueuePtr front;
QueuePtr rear;
} LinkQueue;
In this Qnode is what meaning, what's the difference

CodePudding user response:

The first line Qnode is the name of structure (professional term call what forget?? )
The third line is defines a pointer to Qnode the structure of a next,
The fourth row Qnode was Qelemtype structure members that what (forget), but this is like structure name, I think it is a little problem (of course I'm not sure, I am also a beginner, hope bosses point out my mistakes)

CodePudding user response:

You this is written in C, C + + is not to do so,
  • Related