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