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

Username:   Password: 
 RegisterRegister   
 Secret Message Program
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
basharious




PostPosted: Mon Mar 27, 2006 4:13 pm   Post subject: Secret Message Program

Hizz...
This program takes a message in English(obviously) and code it (in English letters) to something like gibbersih and saves it to a file. It also has the option of decoding a saved message back into English.



Secret Message.t
 Description:

Download
 Filename:  Secret Message.t
 Filesize:  8.96 KB
 Downloaded:  210 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Delos




PostPosted: Mon Mar 27, 2006 5:07 pm   Post subject: (No subject)

Not too bad.

- I'm glad you're using procs and fcns, but it's one thing to know how to use a sword, it's another to know how not to cut one own's hand off. You still have a ways to go before you'll be able to effectively use either or both of these.
You've started using parameters - stick with that and try to better you knowledge of them.
- your encoding/decoding algorithm is rather, uh, bad. Don't try hard-code every single value, that's just tiresome. For instance, what happens when someone enters in punctuation or numbers? Both are still parts of the English language...hence your programme should be able to encode them if it were to live up to its name.
Read the recent tuts on encryption, will help you come up with more efficient algorithms.

- this piece of code:
code:

        % Test that the open procedure has been successful
        exit when inputfile > 0

could be made a little less brutal by using:
code:

   if File.Exists (fileName) then
      %...

since with the previous method, crashes are quite possible. (Ah! assert!).
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  [ 2 Posts ]
Jump to:   


Style:  
Search: