Results 1 to 5 of 5

Thread: VB.NET - Morse code, 1337, and rot-13 translator

  1. #1

    Thread Starter
    Addicted Member bobabot1's Avatar
    Join Date
    Jul 2006
    Location
    The Restaurant at the End of the Universe
    Posts
    162

    VB.NET - Morse code, 1337, and rot-13 translator

    I'm currently making a small program that allows the user to input text, choose a radio button, press convert, and it will be translated from english to morse code, 1337, or rot-13. This was just a test project in making a string replacer because in the future, I would like to make a small traveler's dictionary from english to german or spanish.

    Here's the code: Oops. The code was too long so I will make it an attachment.


    I'm just looking for comments on how I could make it run better/less lines of code. Also, The morse code decrypter doesn't seem to like me. It's just giving me the regular code back and I can't figure it out.
    Attached Files Attached Files
    Quote Originally Posted by ZaNi
    On a side note, I've figured something out: IE is like life... Its a disease we all start with, and it will be fatal someday unless something drastic changes .

    Note: If I was helpful, rate me!
    This is a subliminal message. GET FIREFOX!

  2. #2

    Thread Starter
    Addicted Member bobabot1's Avatar
    Join Date
    Jul 2006
    Location
    The Restaurant at the End of the Universe
    Posts
    162

    Re: VB.NET - Morse code, 1337, and rot-13 translator

    OH! I forgot to mention that Swamo got me started with the groundwork of the code. Thanks Swamo!
    Quote Originally Posted by ZaNi
    On a side note, I've figured something out: IE is like life... Its a disease we all start with, and it will be fatal someday unless something drastic changes .

    Note: If I was helpful, rate me!
    This is a subliminal message. GET FIREFOX!

  3. #3

    Thread Starter
    Addicted Member bobabot1's Avatar
    Join Date
    Jul 2006
    Location
    The Restaurant at the End of the Universe
    Posts
    162

    Re: VB.NET - Morse code, 1337, and rot-13 translator

    Well, 5 views 0 comments. Does anyone want to comment on my code? I'm really just starting but I'd like some constructive criticism.
    Quote Originally Posted by ZaNi
    On a side note, I've figured something out: IE is like life... Its a disease we all start with, and it will be fatal someday unless something drastic changes .

    Note: If I was helpful, rate me!
    This is a subliminal message. GET FIREFOX!

  4. #4
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: VB.NET - Morse code, 1337, and rot-13 translator

    Aside from the fact that, in Morse decrypt, you have both -- and -. decoded as "m", it seems to work. (I had to change it around a bit to test it in VB6.)

    1) It's code and decode, not encrypt and decrypt. This is straight encoding, not encrypting. (Just a monor nit pick.)

    2) You could put the output characters into an array and use the ASCII value of the input character to index into the array - it would be a bit faster. Of course that wouldn't work for decoding Morse.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  5. #5

    Thread Starter
    Addicted Member bobabot1's Avatar
    Join Date
    Jul 2006
    Location
    The Restaurant at the End of the Universe
    Posts
    162

    Re: VB.NET - Morse code, 1337, and rot-13 translator

    Oops.

    I sorta thought so. I couldn't remember the correct words so I went with what made me think of the idea.

    Ok. I'll probably try that in the later releases.

    Thanks for the feedback!
    Quote Originally Posted by ZaNi
    On a side note, I've figured something out: IE is like life... Its a disease we all start with, and it will be fatal someday unless something drastic changes .

    Note: If I was helpful, rate me!
    This is a subliminal message. GET FIREFOX!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width