(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.
When looking at bones, joints should be like stones, steep but not horizontal, round but not thick. Thin people should not