cpp_prac/morse/morse_code.h

14 lines
281 B
C
Raw Normal View History

2025-01-12 15:22:13 +01:00
#pragma once
#include <string>
#include <map>
#include <fstream>
class Morse_code
{
public:
Morse_code(std::string filename);
std::string encode(const std::string &str);
std::string decode(const std::string &str);
private:
std::map<char, std::string> morse_map;
};