Home > Back-end >  On the stack and queue
On the stack and queue

Time:03-22

Why can't directly initialization, so this part of the code out of the problem, so list only this part of the code,
 
Struct SeqStack {
Int stack [10000];
Int top;
} * S;
Struct SeqCqueue {
Int the front;
Int rear;
Int count;
Int the queue [10000].
} * Q;
Int main ()
{
Int X, I, n.
S - & gt; Top=0;//initialize the stack
Q - & gt; The front=0;//initialize the queue
Q - & gt; Rear=0;
Q - & gt; count=0;
  • Related