How do I create a neat table-like layout in a basic text-only program?
The program needs to have titles like Name, Age, and Height. Underneath,
the user will enter names, ages, and heights, which need to stay in-line,
as though they are in invisible columns. eg.
Name------------------Age-----Height
Gus Smith------------22-------5"11
Hank Mathewson---42--------6"1
Frank Dimitrianus---54-------5"6
Instead of dashes, empty space though.
I have everything else done, I just need some kind of command to have
entries automatically take up a certain amount of space. Gus Smith needs
to take up 20 characters of space, and Frank Dimitrianus needs to take up
20 characters of space, so that the ages will start in the correct
position, in-line with each other.
Thanks
No comments:
Post a Comment