#include "morse_code.h" #include int main() { Morse_code mc{"morse.def"}; std::cout << mc.encode("Hello Morse") << "\n"; // .... . .-.. .-.. --- -- --- .-. ... . std::cout << mc.decode("... --- ...") << "\n"; std::cout << mc.decode(".... ----") << "\n"; // ---- is not a valid code std::cout << mc.decode(mc.encode("loopback test")) << "\n"; // }