Thread: Replacing Morse to English

  1. #31
    null pointer Structure's Avatar
    Join Date
    May 2019
    Posts
    147

    Cool

    I don't think you might ever read anything written
    My apologies, i was busy coding awesome stuff in multiple languages including several of my own.

    That's that.
    Oh is that so mr. that's thatty ?

    The guy/girl may not even know what a #define is
    Please try to follow along.

    i just know i didnt do it well the first time and wanted to go back to it to try and understand how i should have
    Tbh if you are really interested in learning, this is something you will be doing very often.

    posting gibberish
    Last edited by Structure; 4 Weeks Ago at 10:00 AM.


  2. #32
    null pointer Structure's Avatar
    Join Date
    May 2019
    Posts
    147
    Anyways... problem one is the fact you are using single quotes for strings which is invalid. Double quotes for strings ", single quotes for character '. Technically it should throw an error but i'm guessing the compiler just took the first character.

    Code:
    case'.-':
    Last edited by Structure; 4 Weeks Ago at 10:16 AM.


  3. #33
    Registered User
    Join Date
    Dec 2017
    Posts
    627
    I vote to cancel this idiot's account.
    The world hangs on a thin thread, and that is the psyche of man. - Carl Jung

  4. #34
    misoturbutc Hodor's Avatar
    Join Date
    Nov 2013
    Posts
    1,408
    Quote Originally Posted by flp1969 View Post
    Maybe you find this more useful:

    Attachment 15837
    Well, yes. Same difference except I used this tree

    Replacing Morse to English-500px-morse-code-tree-svg-png

    I started writing an explanation of how my snippet works but I a quick search finds similar implementations (e.g. Morse encoder – PocketMagic) The implementation in that link is similar to the reasoning I went through but still relies, like mine, on implementation defined behaviour (specifically the character set encoding). It's the same general idea though

    Edit: Although that article's idea of preorder traversal is different to mine! I would have called my (and their) traversal BFS or level order, not preorder :/
    Last edited by Hodor; 4 Weeks Ago at 10:22 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 06-04-2018, 08:16 AM
  2. Code Morse ,help...
    By Raskolnikov LM in forum C Programming
    Replies: 1
    Last Post: 01-05-2018, 05:24 PM
  3. Morse Code(Going the other way)
    By lilbo4231 in forum C Programming
    Replies: 21
    Last Post: 06-16-2011, 03:25 AM
  4. Implementing a English-Spanish/Spanish-English Dictionary
    By invertedMirrors in forum C Programming
    Replies: 4
    Last Post: 02-23-2008, 03:48 PM
  5. how convert english to morse code
    By uler in forum C++ Programming
    Replies: 2
    Last Post: 09-12-2001, 07:56 PM

Tags for this Thread