cpp_prac/morse/morse_code.h
2025-01-12 15:50:45 +01:00

17 lines
No EOL
334 B
C++

#pragma once
#include <string>
#include <map>
#include <fstream>
#include <iostream>
#include <algorithm>
#include <sstream>
class Morse_code
{
public:
Morse_code(std::string filename);
std::string encode(const std::string &str);
std::string decode(std::string str);
private:
std::map<char, std::string> morse_map;
};