caesar_cipher/caesar_cipher.cpp
void ask_mode() {
  std::cout << "Select mode encrypt[enc] / decrypt[dec]: ";
  std::getline(std::cin, mode);

  if (mode != "enc" && mode != "dec") {
    std::cout << "Select a valid mode." << std::endl;
    ask_mode();
  }

  if (mode == "dec") {
    reverse(symbols.begin(), symbols.end());
  }

  return;
}
/* Ask for encryption/decryption mode */
Ask for encryption/decryption mode
Ask for encryption / decryption mode
void ask_mode() {
  std::cout << "Select mode encrypt[enc] / decrypt[dec]: ";
  std::getline(std::cin, mode);
  if (mode != "enc" && mode != "dec") {
    std::cout << "Select a valid mode." << std::endl;
    ask_mode();
  }
  if (mode == "dec") {
    reverse(symbols.begin(), symbols.end());
  }
  return;
}
void ask_mode ( ) { std :: cout << " " ; std :: getline ( std :: cin , mode ) ; if ( mode != " " && mode != " " ) { std :: cout << " " << std :: endl ; ask_mode ( ) ; } if ( mode == " " ) { reverse ( symbols . begin ( ) , symbols . end ( ) ) ; } return ; }
Ask for encryption/decryption mode
Ask for encryption / decryption mode