Changed compile error

This commit is contained in:
2018-05-05 18:15:56 -04:00
parent d1a68f1680
commit 119d0fe555

View File

@@ -15,7 +15,7 @@
class Morse{
private:
//Holds the Morse representation of the alphanumeric characters
const std::string Morse::code[36] {".-", "-...", "-.-.", "-..", ".", "..-.", "--.", "....", "..", ".---", "-.-", ".-..", //A-L
const std::string code[36] {".-", "-...", "-.-.", "-..", ".", "..-.", "--.", "....", "..", ".---", "-.-", ".-..", //A-L
"--", "-.", "---", ".--.", "--.-", ".-.", "...", "-", "..-", "...-", ".--", "-..-", "-.--", "--..", //M-Z
"-----", ".----", "..---", "...--", "....-", ".....", "-....", "--...", "---..", "----."}; //0-9
std::stringstream inputString; //The string that needs encoded/decoded