c++ - Substitution Cipher, Strings and Functions -
where stuck @ encryptstring function. encryptfile function take .txt file , convert .txt c string equivalent, pass encrpytstring function. when pass in, substitution function work cipher string , encrypt individual characters, spit out new string called encrypted_string. however, cannot function accept argument passed it. guidance? this program is: #include <iostream> #include <fstream> #include <string> #include <cstdlib> using namespace std; char substitution_cipher(string cipher_key, char char_to_encrypt); char reverse_substitution_cipher(string cipher_key, char char_to_encrypt); string encryptstring(string &cipher_key, string string_to_be_encrypted); string decryptstring(string &cipher_key, string string_to_be_decrypted); void rotatecipherkey(string &cipher_key); void displayfile(string filename); void encryptfile(string cipher_key, string filename_from, string filename_to); void decryptfile(string cipher_key, string filename_from,