c struct question
Posted
by lhw
on Stack Overflow
See other posts from Stack Overflow
or by lhw
Published on 2010-05-24T05:19:46Z
Indexed on
2010/05/24
5:31 UTC
Read the original article
Hit count: 185
Hi,
I'm trying to implement a simple priority queue from array of queues. I'm trying to define a struct queue, and than a struct priority queue that has an array of queues as its member variable. However, when I try to compile the code, I get the following error:
pcb.h:30: error: array type has incomplete element type
The code is below:
typedef struct{
pcb *head;
pcb *tail;
SINT32 size;
} pcb_Q;
typedef struct {
struct pcb_Q queues[5];
SINT32 size;
} pcb_pQ;
Could someone give me a hand? Thanks a lot.
© Stack Overflow or respective owner