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

Username:   Password: 
 RegisterRegister   
 Running a separate turing file with the system () command.
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
corriep




PostPosted: Fri May 08, 2009 5:48 pm   Post subject: Running a separate turing file with the system () command.

Hey guys quick question, what is the system () command to run a separate turing file?. For example, I want to create a file that runs "Hello, World!":
Turing:
var OUT : int
open : OUT, "file.t", put

put : OUT, "put \"Hello, World!\""
var foo : int
system ("command here", foo)


PS. found a bug w/ the preview button, when it is pressed in the Turing Help section, all your previous text is replaced by the template text Confused
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Fri May 08, 2009 7:50 pm   Post subject: RE:Running a separate turing file with the system () command.

it's Sys.Exec. Though that could be used to start any executable file. Meaning that you would first have to compile the code.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
corriep




PostPosted: Fri May 08, 2009 8:25 pm   Post subject: RE:Running a separate turing file with the system () command.

Ok then, how would I compile the new turing file into a .exe with Sys.Exec or system?
Euphoracle




PostPosted: Fri May 08, 2009 9:25 pm   Post subject: RE:Running a separate turing file with the system () command.

Download turing 4.1, and compile it. 4.1.1a won't do it.

In the Run menu under generate standalone program.
andrew.




PostPosted: Sat May 09, 2009 9:55 am   Post subject: Re: RE:Running a separate turing file with the system () command.

corriep @ Fri May 08, 2009 8:25 pm wrote:
Ok then, how would I compile the new turing file into a .exe with Sys.Exec or system?
You can't. You must compile it inside of Turing beforehand.
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  [ 5 Posts ]
Jump to:   


Style:  
Search: