Code:
//#include <string.h>
#include <stdlib.h>
#define MORSE = 6;
#define ALPHA = 37;
class morse
{
private:
/*char morseCode[][MORSE] = {".-","-...","-.-.","-..",".","..-.","--.","....","..",".---","-.-",
".-..","--","-.","---",".--.","--.-",".-.","...","-","..-","...-",
".--","-..-","-.--","--..",".----","..---","...--","....-",".....",
"-....","--...","---..","----.","-----"};
*/
char morseCode[][MORSE];
char alpha[37];
public:
// char getCode(char alpha);
morse();
};
morse::morse()
{
morseCode[][MORSE] = {".-","-...","-.-.","-..",".","..-.","--.","....","..",".---","-.-",
".-..","--","-.","---",".--.","--.-",".-.","...","-","..-","...-",
".--","-..-","-.--","--..",".----","..---","...--","....-",".....",
"-....","--...","---..","----.","-----"};
}
thanks in advance for any help!