KeiroKamioka

Jigoku5

Feb 22nd, 2021
861
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. class encryptor
  7. {
  8. public:
  9.     virtual string encode(string original) = 0;
  10.     virtual string decode(string secret) = 0;
  11. };
  12.  
  13. class shift_encryptor : public encryptor
  14. {
  15.     int shift;
  16.  
  17. public:
  18.     shift_encryptor(int shift)
  19.     {
  20.         // Your code starts here
  21.  
  22.         // Your code ends here
  23.     }
  24.  
  25.     string encode(string original)
  26.     {
  27.         // Your code starts here
  28.  
  29.         // Your code ends here
  30.     }
  31.  
  32.     string decode(string secret)
  33.     {
  34.         // Your code starts here
  35.  
  36.         // Your code ends here
  37.     }
  38. };
  39.  
  40. class cypher_encryptor : public encryptor
  41. {
  42.     string cypher;
  43. public:
  44.     cypher_encryptor(string cypher)
  45.     {
  46.         // Your code starts here
  47.  
  48.         // Your code ends here
  49.     }
  50.     string encode(string original)
  51.     {
  52.         // Your code starts here
  53.  
  54.         // Your code ends here
  55.     }
  56.  
  57.     string decode(string secret)
  58.     {
  59.         // Your code starts here
  60.  
  61.         // Your code ends here
  62.     }
  63. };
  64.  
  65. //After
RAW Paste Data