Having a problem With changing a vertical line to Horizontal
Author |
Message |
SpadeZAceZ

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

|
|
 |
lordroba

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

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