17 lines
No EOL
334 B
C++
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;
|
|
}; |