crypto_square: iteration 1

This commit is contained in:
Dmitry Kokorin 2016-04-07 23:29:13 +03:00
parent 5f232d2fe3
commit 76d5f8c99c
2 changed files with 116 additions and 0 deletions

View file

@ -0,0 +1,29 @@
#pragma once
#define EXERCISM_RUN_ALL_TESTS
#include <string>
#include <vector>
namespace crypto_square {
class cipher
{
std::string text_;
std::size_t size_;
public:
typedef std::vector<std::string> segments_t;
cipher(const std::string &text);
std::string normalize_plain_text() const;
std::size_t size() const;
segments_t plain_text_segments() const;
std::string cipher_text() const;
std::string normalized_cipher_text() const;
};
}