Computer Science Canada Morse Code Translating-disk file / manipulation |
Author: | fenix_128 [ Thu May 15, 2008 2:54 am ] | ||
Post subject: | Morse Code Translating-disk file / manipulation | ||
I am trying to code a Morse Code translator that takes morse code from a file (previously made) and translates it to user. I read from the file and translate the code but I need a way recognize multiple spaces spaces and find out where it is so I can enter a space in the translated output. (1 space between letters and 3 between words) This is what I have so far
The morse that is suppose to be decoded is attached as well as the decoded code. |
Author: | gitoxa [ Thu May 15, 2008 4:27 pm ] | ||
Post subject: | RE:Morse Code Translating-disk file / manipulation | ||
I'm sorry, but that's definately an awesome for loop. |
Author: | CodeMonkey2000 [ Thu May 15, 2008 8:46 pm ] | ||
Post subject: | RE:Morse Code Translating-disk file / manipulation | ||
Make a new code for spaces. Either that or collect the input character by character into a new string and check it from there. Remember:
|
Author: | fenix_128 [ Mon May 26, 2008 1:36 pm ] | ||
Post subject: | Re: Morse Code Translating-disk file / manipulation | ||
SO I finally found it out!!!! here is the code
|