Author |
Message |
helloolleh
|
Posted: Tue May 26, 2009 8:31 am Post subject: Asterisks are fun! |
|
|
Hello!
I jus immigrated to canada two days ago and i need help!
does anybody know how make an asterisk move across the screen on a certain row.
respond before 9:45 am
thank you |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
helloolleh
|
Posted: Tue May 26, 2009 8:31 am Post subject: RE:Asterisks are fun! |
|
|
eastern time |
|
|
|
|
 |
BigBear
|
Posted: Tue May 26, 2009 9:37 am Post subject: RE:Asterisks are fun! |
|
|
you can simply use
locate(row, column)
and
put "*"
then decide how you want the user to move it could be a get staement to get the row and column
I would suggest using locatexy or moving a box around the scrren |
|
|
|
|
 |
animeanime
|
Posted: Tue May 26, 2009 10:12 am Post subject: Re: Asterisks are fun! |
|
|
Mabye you were looking for something like this?
Turing: | var column: int
put "Choose a column for line ",
"between 1 and 80 inclusive"
get column
cls
for row: 1.. 25
locate (row,column )
put "*"..
end for |
This will draw a line verticly from top to bottem on the screen. You can add a delay if you want to to make it go slower or faster, up to your choise. |
|
|
|
|
 |
Siavash
|
Posted: Tue May 26, 2009 12:03 pm Post subject: RE:Asterisks are fun! |
|
|
*snip*
Mod Edit: Giving full answers dose not help people learn. |
|
|
|
|
 |
Dan

|
Posted: Tue May 26, 2009 8:06 pm Post subject: RE:Asterisks are fun! |
|
|
Lets not give full answers to obvious home work questions.
Thanks. |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
 |
animeanime
|
Posted: Wed May 27, 2009 8:23 am Post subject: RE:Asterisks are fun! |
|
|
Sorry about that ^_^ |
|
|
|
|
 |
|