help with positioning text on console
Hey I need some help with positioning text on screen. i am wondering if i have to use something like gotoxy() for this but i absolutly have no idea how to go about doing this. let me show you a sample of how i want to output the data.
now the headings (Item, Batch, Price, Quantity) are static but i need to be able to start the numbers right under their heading. so i can guess that would need to use variable.size() or .length() to get the length of the longest number. each number on the list can be any value and any number of digits, within reasonable limits ofcourse. is there some sort of way i could built an invisible table or something and full the data in cells?
Item Batch Price Quantity
1 1234 1400 100
2 1235 6200 1000
3 1238 2300 150
4 3013 1450 10
5 1701 7450 50