Answer the question
In order to leave comments, you need to log in
How to make such a frame for the slider?
Good day.
I tried to do it with the help of borders, but there is a problem with the border inside, and most importantly, with the placement of content.
How then can this be implemented?
Answer the question
In order to leave comments, you need to log in
The stack is needed for this, in order not to take values "from below".
The stack is useful for recursion.
AKM is a simple stack-to-queue converter
. But seriously, the stack works according to the LIFO (last in, first out) rule, like cartridges in a machine gun magazine. There is also a queue (like in a vegetable store) where the FIFO rule applies (first in, first out), which is exactly what you need, judging from the example.
There are also arrays and lists where random access to elements by index
Let me disagree with previous speakers.
In Forth, getting the nth element from the depth of the stack is easy and there is a word PICK for this.
In principle, knowing the pointer to the top of the stack, you can easily calculate the pointer of the required element, and then it's a matter of technology (C, asm, Forth ... they can easily handle this). ;)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question