1 Attachment(s)
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.
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!
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.
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.
Re: VB.NET - Morse code, 1337, and rot-13 translator
Oops. :D
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!