enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. python - morse code to english python3 - Stack Overflow

    stackoverflow.com/questions/32094525

    I know this is an old question but in the tradition of open source I wrote code to implement the fact that Morse is a binary tree and this may be faster than using a dictionary: class node: def __init__(self, char): self.dot = None. self.dash = None. self.alpha = char. def __str__(self): return self.alpha. def nextNode(self, basenode, char):

  3. What you are doing here is you are not splitting the code into letters using " " as the separator. Try this, string convertToEnglish(string morse, string const morseCode[], string const alpha[]) {. string output; string compile; string currentCodeLetter; int totalMorseCode=38; string str = morse;

  4. C++ Morse to english - Stack Overflow

    stackoverflow.com/questions/59013166

    So far I have done the English text to morse code and I am currently stuck on morse code to english text. I tried doing the same thing as the English to morse but I learned the hard way that it doesn't help, and I dont know where to start. I have been stuck like this for a long time, any advice on how to do this would be greatly appreciated please.

  5. 1. You don't need to compare every character of input string. Compare just when you get space ' ', because space divides characters in Morse code: StringBuilder english = new StringBuilder(); int codeLength = 0; for(int i=0; i<morse.length();i++){. String code = null;

  6. The English to morse code part works fine, But the Morse code to English doesn't...I keep getting E's and T's , Is there a way to make so that if there's a space in between the Morse code letters it would know theyre different letters instead of having every "." = E and every "-" =T

  7. encoder - Morse Code Converter in C - Stack Overflow

    stackoverflow.com/questions/28045172

    You'll need to start with the binary tree parsed in preorder, find the index of the letter you want to encode to morse, convert that to binary, ignore the first digit, and then just assign the zeros to dots, and the ones to dashes. It's really simple. A C implementation example. Also there is a full code example here.

  8. java - Morse code to English? - Stack Overflow

    stackoverflow.com/questions/16004858

    I'm trying to write something that translates English to Morse code and vice-versa. I got the English to Morse running fine, but I'm having a hard time converting it the other way.

  9. ch=azarray+a; return ch; } the function keyread is supposed to split the morse string into 4 chars and pass that to the morse2english function which is supposed to find the alphabetical representation of the morse code and return it to the keyread function and add it to string4. c. pointers. loops.

  10. /* *This is a program that translates Morse Code to English text. The key is read from a file. * *The file contains the equivalent letters and Morse code. The entire key is stored in an array for reference. * *A second file contains the encrypted message.

  11. java - Morse code translator (simple) - Stack Overflow

    stackoverflow.com/questions/29706653

    Once found use the same index from english in morse. I am assuming english and morse have same length and morse[0] is the translation of english[0] in morse code. userInput = userInput.toCharArray(); for (index = 0; index < userInput.length; index++) {. for (int i = 0; i < english.length; i++) {.