![]() |
|
#1
|
|||
|
|||
Morse Code Program Using Switch StatementHow To Do It
|
|
#2
|
|||
|
|||
Re: Morse Code Program Using Switch StatementQuote:
CPP / C++ / C Code:
Regards, Dave |
|
#3
|
|||
|
|||
Re: Morse Code Program Using Switch Statementthanks hope it works for me
|
|
#4
|
|||
|
|||
Re: Morse Code Program Using Switch Statementi didn't understandit
|
|
#5
|
|||
|
|||
Re: Morse Code Program Using Switch Statementhow to declare it in form of char
|
|
#6
|
||||
|
||||
Re: Morse Code Program Using Switch StatementSenior members might not reply to this thread if you:
__________________
Please read these Guidelines before posting on the forum "A person who never made a mistake never tried anything new." Einstein |
|
#7
|
|||
|
|||
Re: Morse Code Program Using Switch StatementQuote:
In English: If you have a program specification show us what it is. If you don't have a program specification then write it down and show it to us. A program specification describes what the inputs to the program are, what the outputs are, and what it is that the program has to do in order to perform the task. For example, if the input is a string of chars a-z, 0-9 and a few punctuation (comma, period, question mark, slash, for example) and the output is supposed to be a string of '.' and '-' chars representing the International Morse characters, separated by spaces, then say it. Once you have decided what the heck the program is supposed to do, then you consider how the data items are going to be represented internally so that you can process all Morse characters that you have to translate. (a-z, 0-9, and the punction marks that I showed require no more than six dots and dashes in various combinations for each character, so there is probably a way to hold each character in a byte if that's what you need to do. Your scheme must take into account that, unlike ASCII, different Morse characters have different lengths. Or, each morse character can be represented as a string of length no greater than six. Or whatever... It's your program and your design. You decide. Then, decide how the program is going to flow: is it going to ask the user for a string and then print out the dots and dashes? Is is going to print out a "canned" message? Is it going to print out all of the characters that it can? Or what? Regards, Dave |
|
#8
|
|||
|
|||
Re: Morse Code Program Using Switch Statementhi plz solve my problem this is my question I have to enter a to z and 0 to 9 by using switch statement and then display the morse code equivalent of the character entered and
output INPUT_CHAR [MORSE_CODE] PLEASE EXPLAIN ME IN SIMPLE WAY |
|
#9
|
|||
|
|||
Re: Morse Code Program Using Switch Statementhi plz solve my problem this is my question I have to enter a to z and 0 to 9 by using switch statement and then display the morse code equivalent of the character entered and
output INPUT_CHAR [MORSE_CODE] PLEASE EXPLAIN ME IN SIMPLE WAY this is my code CPP / C++ / C Code:
Last edited by LuciWiz : 25-Sep-2006 at 06:54.
Reason: Please insert your C/C++ code between [cpp] & [/cpp] tags
|
|
#10
|
||||
|
||||
Re: Morse Code Program Using Switch StatementQuote:
Looks like you also ignored the same request in this thread. Start there, and look up the switch statement in your test book. __________________
Age is unimportant -- except in cheese |
Recent GIDBlog
More photos on Flickr by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pipeline freeze simulation | darklightred | C++ Forum | 6 | 27-Jul-2006 19:37 |
| Noob Programmer having trouble with if and switch statements in program | Heresy | C Programming Language | 4 | 17-Feb-2006 17:55 |
| User defined headers | davis | Miscellaneous Programming Forum | 6 | 16-Feb-2006 18:40 |
| Compiling/Linking | roostercogburn | C Programming Language | 5 | 08-Nov-2005 14:32 |
| Problems with switch statement | dontcare | C++ Forum | 4 | 29-Nov-2004 18:28 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The