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

Username:   Password: 
 RegisterRegister   
 Could someone compile this for me?
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Ultimus




PostPosted: Sat Aug 21, 2004 11:58 am   Post subject: Could someone compile this for me?

var key : string (1)
var path, input : string
var stream : int
put "Enter File name: "..
get path :*
open : stream, path, put
assert stream > 0
loop
cls
put "First Name: "..
get input :*
exit when input = ""
put : stream, '0,"","' + input + '","' ..
put "Last Name: "..
get input *
put : stream, input + '","","","","' ..
put "Address: "..
get input :*
put : stream, input + '","Toronto","","","Canada","' ..
put "Phone Number: "..
get input :*
put : stream, input + '","","","","","","","","","","","","","","","","",""'
put "Entry saved."
getch (key)
end loop



Should work, I checked through it as best as I could. The thing is I don't have OOT on this computer but I need a quickie program to use as an address book generator the way I want it to work. Seriously, this favor would be much appreciated.[/i]
Sponsor
Sponsor
Sponsor
sponsor
Dan




PostPosted: Sat Aug 21, 2004 12:08 pm   Post subject: (No subject)

There are errors in your code, but i fixed them and i added the exe in a zip arcive to this post.


Unnamed.zip.zip
 Description:

Download
 Filename:  Unnamed.zip.zip
 Filesize:  268.11 KB
 Downloaded:  158 Time(s)

Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Ultimus




PostPosted: Sat Aug 21, 2004 4:15 pm   Post subject: (No subject)

Thanks. Yeah, I see some typos now - it's kinda difficult doing blind programming Smile .
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: