14 lines
281 B
C
14 lines
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;
|
||
|
};
|