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

Username:   Password: 
 RegisterRegister   
 Having a problem With changing a vertical line to Horizontal
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
SpadeZAceZ




PostPosted: Sun Jan 17, 2010 11:38 pm   Post subject: Having a problem With changing a vertical line to Horizontal

What is it you are trying to achieve?
Write a program to plot a horizontal line of minus signs in any row of the window that you specify.


What is the problem you are having?
I am new at turing, so i am not sure how to complete it.

Describe what you have tried to solve this problem
umm asking people for help and messing it around.


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
<Answer Here>

Turing:


% The "DrawHorizontalLine" program
% Draws a horizontal line of asterisks
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






Please specify what version of Turing you are using
<Answer Here>
Sponsor
Sponsor
Sponsor
sponsor
lordroba




PostPosted: Mon Jan 18, 2010 12:19 am   Post subject: Re: Having a problem With changing a vertical line to Horizontal

Turing:
% The "DrawHorizontalLine" program
% Draws a horizontal line of asterisks
var column : int
put "Choose a column for line ",
    "between 1 and 80 inclusive"
get column
cls
for row : 1 .. 25
    locate (column, row)
    put "-" ..
end for


like that?
SpadeZAceZ




PostPosted: Mon Jan 18, 2010 1:19 am   Post subject: RE:Having a problem With changing a vertical line to Horizontal

Thankyou man, and yep like that Saved me a bunch lol
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  [ 3 Posts ]
Jump to:   


Style:  
Search: