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

Username:   Password: 
 RegisterRegister   
 I'm having trouble understanding the meaning behind each individual command
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
rty1001




PostPosted: Tue Sep 12, 2017 12:18 pm   Post subject: I'm having trouble understanding the meaning behind each individual command

What is it you are trying to achieve?
An understanding of this code.


What is the problem you are having?
Understanding this code.


Describe what you have tried to solve this problem
N/A


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
var numbers : array 1 .. 100 of int
var x : int
var writeFile : int
var readFile : int
open : writeFile, "data.txt", put



for i : 1 .. 100
randint (x, 1, 10)
put x
put : writeFile, x
end for

close : writeFile
open : readFile, "data.txt", get

for j : 1 .. 100
get : readFile, numbers (j)
end for

/* put "Please enter a positive number to continue"
put "Please enter a negative number to quit"
var response: int

loop
get response
put if response <0 then exit
end if
end loop */



for k : 1 .. 100
put numbers (k)
end for


Turing:


^



Please specify what version of Turing you are using
4.1.1
Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: Wed Sep 13, 2017 7:30 pm   Post subject: RE:I\'m having trouble understanding the meaning behind each individual command

Which specific parts do you not understand?
rty1001




PostPosted: Thu Sep 14, 2017 11:46 am   Post subject: Re: I'm having trouble understanding the meaning behind each individual command

Everything
Insectoid




PostPosted: Thu Sep 14, 2017 5:08 pm   Post subject: RE:I\'m having trouble understanding the meaning behind each individual command

If you click on the Turing button at the top centre of this page you'll find a link to the Turing documentation. It lists every commend and describes in detail how they work.
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: