pepsi_max2k
02-27-2005, 09:51 AM
hey there, i'm currently trying to produce a program and output data in the following format:
http://www.inaudible.co.uk/temp/coutput.gif
apparently i have to get the output as close to that as possible, but i don't know any other ways of printing stuff out other than just text and spaces, or using \t, but if i use either of those then whenever the length of a bane ir weight changes then the text to the right of it is gonna get unaligned.
the best way i can think of is counting the words/numbers in one bit of data (name/weight) then adding the correct number of spaces after it to line the following data up.
is there any easier way of laying stuff out like in the example?
http://www.inaudible.co.uk/temp/coutput.gif
apparently i have to get the output as close to that as possible, but i don't know any other ways of printing stuff out other than just text and spaces, or using \t, but if i use either of those then whenever the length of a bane ir weight changes then the text to the right of it is gonna get unaligned.
the best way i can think of is counting the words/numbers in one bit of data (name/weight) then adding the correct number of spaces after it to line the following data up.
is there any easier way of laying stuff out like in the example?