Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spaced number
#11
*bang* Wink

I should have got that...
Reply
#12
Same here.
Whatever. 8)
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#13
Code:
FOR y = 1 TO 10
LOCATE y,1
FOR x = 1 TO 10
   PRINT map(x, y);
NEXT
NEXT

Why not this?
Reply
#14
TBBQ, that's the best yet.

I tried
Code:
LOCATE 1, 1
FOR y = 1 TO 10
  TextLine$ = ""
  FOR x = 1 TO 10
    TextLine$ = TextLine$ + LTRIM$(STR$(map(x, y)))
  NEXT
  PRINT TextLine$
NEXT
but found out string concatenation is slow. It improved when I switched to a fixed length string and used MID$. The performance was about the same as TBBQ's, but his code is simpler and therfore better.
hrist Jesus came into the world to save sinners, of whom I am first.(I Timothy 1:15)

For God so loved the world, that He gave His only begotten Son,
that whoever believes in Him should not perish, but have eternal life.(John 3:16)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)