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.
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 .
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!
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 .
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.
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 .
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
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!
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 .