cpp_prac/morse/morse_code.h
2025-01-12 15:22:13 +01:00

14 lines
No EOL
281 B
C++

#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;
};