دنبال کننده ها

۱۳۹۶ آذر ۱۱, شنبه

c - Circular queue with a struct

[ad_1]




Hi,



I'm trying to code a circular list but I have to add more than one information to each element of the list.



My queue is defined as

typedef struct queue

int data[maxsize];
int f,r;
myQueue;
myQueue q



And I need each element to be a struct like

typedef struct info
enter code hereint number1;
enter code here
int number2;
enter code hereint number3;
enter code here
int number4;
Element;



Any idea on how can I do that? Thank you!








[ad_2]

لینک منبع