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

Username:   Password: 
 RegisterRegister   
 How to edit files that you open onto a turing run window (text files)
Index -> Programming, Turing -> Turing Help
Goto page Previous  1, 2, 3
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
efan41




PostPosted: Mon Nov 23, 2009 2:58 pm   Post subject: Re: How to edit files that you open onto a turing run window (text files)

By the way it's a EOF attempted on incompatible stream number 3, not a Get attempted... lol
Sponsor
Sponsor
Sponsor
sponsor
belarussian




PostPosted: Mon Nov 23, 2009 9:02 pm   Post subject: RE:How to edit files that you open onto a turing run window (text files)

ok look you have to change thge text in the file its self and just add the file into turing thats it easy
belarussian




PostPosted: Mon Nov 23, 2009 9:03 pm   Post subject: RE:How to edit files that you open onto a turing run window (text files)

and if you need to include a turing file look at something like "include"
efan41




PostPosted: Tue Nov 24, 2009 2:03 pm   Post subject: Re: How to edit files that you open onto a turing run window (text files)

I don't understand.. Confused What exactly do you mean I have to change the text in the file itself, please be more specific..
efan41




PostPosted: Tue Nov 24, 2009 2:59 pm   Post subject: Re: How to edit files that you open onto a turing run window (text files)

And btw Superskull I noticed that if I load a file with my program (I can do that now Smile ), I can save without getting the EOF attempted on incompatible stream number 3 error.. Confused? I don't know if that'll help but I figured I might point it out.
Superskull85




PostPosted: Tue Nov 24, 2009 6:15 pm   Post subject: RE:How to edit files that you open onto a turing run window (text files)

What belarussian is trying to say is that if you change the contents of a file, and than load that file in, the contents on the screen will change. However, what you are doing is getting input from the user and outputting it to the screen (also some saving and loading, but that is a little different than what he mentioned).

I got your PM, but I don't have a lot of time to go over it right now. Probably tomorrow though. If you give me a date that you need the program done by I can do my best to help you out by then. Smile
efan41




PostPosted: Wed Nov 25, 2009 2:01 pm   Post subject: Re: How to edit files that you open onto a turing run window (text files)

Project is due in less than a month, the 19th of december I believe...
efan41




PostPosted: Fri Dec 04, 2009 2:43 pm   Post subject: Re: How to edit files that you open onto a turing run window (text files)

lol yeah btw I just remembered that my backspace isn't working. I'm trying to use something like this:


code:


number_of_keys_hit:= number_of_keys_hit- 1
My_array (number_of_keys_hit) := My_array (number_of_keys_hit) (1..*1)



Which is what Superskull suggested, but it won't erase the letter from the screen, although it seems to be erasing the last key hit from My_array (number_of_keys_hit)'s memory, which is good. Any thoughts?
Sponsor
Sponsor
Sponsor
sponsor
Superskull85




PostPosted: Fri Dec 04, 2009 7:33 pm   Post subject: RE:How to edit files that you open onto a turing run window (text files)

Well the problem is that with your current code you are never outputting the text every iteration of a loop. Instead you are outputting the character when the key is pressed. What you want to do is to somehow integrate this code:

Turing:
for i : 1 .. t - 1
     put character (t)
end for

So that it is continuously called and updating the screen. I can't see any immediate solution, and I'm afraid I won't have anymore time to help you before your due date, but hopefully you are able to finish. Smile
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 3 of 3  [ 39 Posts ]
Goto page Previous  1, 2, 3
Jump to:   


Style:  
Search: