Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Can you take a look at (s-> Data) [s-> What does top] = x mean?
Can you take a look at (s-> Data) [s-> What does top] = x mean?
Hello!

(s

-& gt;

Data) [s

-& gt;

Top]

=

x;

Is to put x at the top of the array data; //What you mean in your program is to always add elements at the top of the stack.

However, when using array to realize the function of stack here, we should put S.

-& gt;

top++

; Put this sentence in (s)

-& gt;

Data) [s

-& gt;

Top]

=

x

; You can always add elements to the top of the stack later.

Only on behalf of personal views, don't spray if you don't like it, thank you.