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

Username:   Password: 
 RegisterRegister   
 Switching to the Y-Intercept?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
ProgrammedAlec




PostPosted: Tue Nov 11, 2008 11:07 pm   Post subject: Switching to the Y-Intercept?

Here I have a code:
code:
setscreen ("screen")
var row, column, colr : int
var one: int
        loop
        randint (one, 1, 10)
            randint ( row, 1, maxrow - 2)
            randint ( column, 1, maxcol)
            randint (colr, 0, maxcolor)
            put one
            locate (row, column )
            put "0" ..
            colourback (black)
            colour (brightgreen)
        end loop


And basically, It is the matrix but going sideways and too fast.
I need to know what to add in there or edit, so that its actually going down from the top, and slower?

Note: I started learning yesterday, so explaining it verbally will not help.
I need to know the code Smile

Thanks to anybody who helps me !
Sponsor
Sponsor
Sponsor
sponsor
OneOffDriveByPoster




PostPosted: Wed Nov 12, 2008 9:18 am   Post subject: Re: Switching to the Y-Intercept?

ProgrammedAlec @ Tue Nov 11, 2008 11:07 pm wrote:
And basically, It is the matrix but going sideways and too fast.

Note: I started learning yesterday, so explaining it verbally will not help.
Nevertheless, I'll explain. If you are switch rows with columns, then you will make something that moves horizontally to something that moves vertically.
Insectoid




PostPosted: Wed Nov 12, 2008 12:35 pm   Post subject: RE:Switching to the Y-Intercept?

What OneOffDriveByPoster means is, you have your rows/columns mixed up.
ProgrammedAlec




PostPosted: Wed Nov 12, 2008 5:48 pm   Post subject: RE:Switching to the Y-Intercept?

It worked, thank you!
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  [ 4 Posts ]
Jump to:   


Style:  
Search: