Re: Display arguments sliced from a sequence
- Posted by irv Dec 28, 2018
- 981 views
{ { 0, 35, "%12s", 1, 0, 12}, { 1, 16, "%12s", 2, 0, 12}, { 1, 58, "%12s", 2, 1, 12}, { 2, 6, "%12s", 4, 0, 12}, ...
We could be more helpful if we knew what those numbers represent. Just guessing, you are trying to position numbers in a tree form, displaying left or right "child" below the "parent", either left or right of the parent position. If that's the case, then the whole task can probably be done without any formatting table, just knowing the position of the parent and building a format string "on the fly" for that particular 'child'.