mirror of
https://github.com/zs-yg/kortapp-z.git
synced 2025-12-06 16:10:42 +08:00
添加文本转换器代码
This commit is contained in:
13
others/C++/text converter/include/Converter.hpp
Normal file
13
others/C++/text converter/include/Converter.hpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef CONVERTER_HPP
|
||||
#define CONVERTER_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
class Converter {
|
||||
public:
|
||||
virtual ~Converter() = default;
|
||||
virtual std::string convert(const std::string& input) = 0;
|
||||
virtual std::string getName() const = 0;
|
||||
};
|
||||
|
||||
#endif // CONVERTER_HPP
|
||||
Reference in New Issue
Block a user