Just coded this now, figured I would share.
Anyways, here are my variables:
Here's what the MorseDict class looks like:
Creating the dictionary:
Here's the code for converting to morse:
Here's the code for converting from morse:
Here it is working:
![[Image: jS.png]](http://www.lensert.com/jS.png)
And finally, here's the source:
http://pastebin.com/rjPDkMNF
If you're interested, here's the program:
Download (13KB) |
Virus Scan (1/47) <-- Not sure how that happened.