Computer Science Canada Put With Line Spaces |
Author: | josh [ Sat Feb 14, 2004 6:57 pm ] |
Post subject: | Put With Line Spaces |
I am a real newbee and I can't figure out what I have to do to my code in order for it to put spaces bewteen my different lines becasue right now it is very hard to read all clumped together. |
Author: | Cervantes [ Sat Feb 14, 2004 7:27 pm ] | ||||||
Post subject: | |||||||
you can use
the last one there simply draws a blank space, moving the next put statement down one row. |
Author: | Delos [ Sat Feb 14, 2004 8:28 pm ] | ||
Post subject: | |||
Enjoy. |
Author: | josh [ Sat Feb 14, 2004 9:41 pm ] |
Post subject: | |
thanks you guys this makes my program so much easier to understand. |
Author: | sport [ Sun Feb 15, 2004 3:21 pm ] | ||
Post subject: | |||
|
Author: | zylum [ Sun Feb 15, 2004 3:42 pm ] | ||
Post subject: | |||
or you could just use '\n'
-zylum |
Author: | Cervantes [ Sun Feb 15, 2004 4:26 pm ] | ||||||
Post subject: | |||||||
zylum wrote:
that doesn't solve the problem quite. He wanted to put an extra space between his lines. like so
not like so
so for \n to work you'd actually have to put 2 \n 's in there. It saves lines, but it makes your code harder to read. For putting text outside of a loop use put "". For text inside a loop use locate (row, col). If you use the put "" inside a loop it'll continuasly draw the text on a new line which you don't want |
Author: | apomb [ Sun Feb 15, 2004 4:58 pm ] | ||
Post subject: | |||
so all someone could have just told him to use
its just turing...not that hard! |
Author: | Cervantes [ Sun Feb 15, 2004 5:00 pm ] |
Post subject: | |
dude.. read the thread that was suggested along with many other methods.... |
Author: | jonos [ Sun Feb 15, 2004 5:38 pm ] |
Post subject: | |
or, if you wanted to be really complicated and think about it, you could put just enough spaces extra at the one end of your first line to skip a line and then you wouldn't need an extra put statement |
Author: | zylum [ Sun Feb 15, 2004 5:59 pm ] | ||
Post subject: | |||
if you run
it does leave a space -_- |
Author: | Andy [ Sun Feb 15, 2004 9:22 pm ] | ||
Post subject: | |||
i think this is what u want
whatrow and whatcol returns the row and col u are currently about to put text on |