Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Asterisks are fun!
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
helloolleh




PostPosted: 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
Sponsor
sponsor
helloolleh




PostPosted: Tue May 26, 2009 8:31 am   Post subject: RE:Asterisks are fun!

eastern time
BigBear




PostPosted: 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




PostPosted: 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




PostPosted: 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




PostPosted: 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




PostPosted: Wed May 27, 2009 8:23 am   Post subject: RE:Asterisks are fun!

Sorry about that ^_^
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: