Horizontal tabs (\t)
#9

Possible, but it will look ugly with some texts. example:
T h i s i s the first line
This is the second line



But in general it's easy to make - Get the longest line, and then in a while loop adding a spaces in lines until it's the same length.

Код:
for(1...line amount)
  if(strlen(line(i)) > strlen(longestline)) 
    longestline = line;

for(1..line amount)
  while(strlen(line(i) >= strlen(longestline))
    add spaces using variable
too lazy to make a proper code.
Reply


Messages In This Thread
Horizontal tabs (\t) - by Holnista - 26.03.2011, 13:15
Re: Horizontal tabs (\t) - by Rachael - 26.03.2011, 13:31
Re: Horizontal tabs (\t) - by Holnista - 26.03.2011, 13:32
Re: Horizontal tabs (\t) - by Rachael - 26.03.2011, 13:34
Re: Horizontal tabs (\t) - by Calgon - 26.03.2011, 13:41
Re: Horizontal tabs (\t) - by Holnista - 26.03.2011, 15:03
Re: Horizontal tabs (\t) - by WackoX - 26.03.2011, 15:18
Re: Horizontal tabs (\t) - by Holnista - 26.03.2011, 15:33
Re: Horizontal tabs (\t) - by Macluawn - 26.03.2011, 15:44
Re: Horizontal tabs (\t) - by Holnista - 26.03.2011, 21:51

Forum Jump:


Users browsing this thread: 1 Guest(s)