This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class CesarCipher | |
| { | |
| public char[] Alphabet { private get; set; } | |
| public int Shift { private get; set; } | |
| public string Encode(string plainText) | |
| { | |
| // Реализация | |
| return encoded_text; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class CesarCipher { | |
| private $alphabet; | |
| private $shift; | |
| public function setAlphabet($alphabet) | |
| { | |
| $this->alphabet = $alphabet; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class CesarCipher(object): | |
| _alphabet = None | |
| _shift = None | |
| def set_alphabet(self, value): | |
| self._alphabet = value | |
| def set_shift(self, value): | |
| self._shift = value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class CesarCipher | |
| attr_writer :alphabet, :shift | |
| def encode(plain_text) | |
| # реализация | |
| return encoded_text | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class CesarCipher { | |
| private char[] alphabet; | |
| private int shift; | |
| public void setAlphabet(char[] alphabet) { | |
| this.alphabet = alphabet; | |
| } | |
| public void setShift(int shift) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gem: --no-ri --no-rdoc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| [ | |
| { "keys": ["ctrl+shift+n"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} } | |
| ] |
NewerOlder