main.cpp
//fn to initialize the left walls of the rotor and reflector - alphabet array obtained from file secretkey.txt

fn to initialize the left walls of the rotor and reflector - alphabet array obtained from file secretkey.txt
fn to initialize the left walls of the rotor and reflector - alphabet array obtained from file secretkey . txt
void enigma ::init()
{
    fstream fin("secretkey.txt", ios::in);
    char temp[27];
    fin.getline(temp, 27, '\n');
    R1.input_rotor(temp);
    fin.getline(temp, 27, '\n');
    R2.input_rotor(temp);
    fin.getline(temp, 27, '\n');
    R.input_reflector(temp);
    fin.close();
}
void enigma :: init ( ) { fstream fin ( " " , ios :: in ) ; char temp [ 27 ] ; fin . getline ( temp , 27 , ' \n ' ) ; R1 . input_rotor ( temp ) ; fin . getline ( temp , 27 , ' \n ' ) ; R2 . input_rotor ( temp ) ; fin . getline ( temp , 27 , ' \n ' ) ; R . input_reflector ( temp ) ; fin . close ( ) ; }
fn to initialize the left walls of the rotor and reflector - alphabet array obtained from file secretkey.txt
fn to initialize the left walls of the rotor and reflector - alphabet array obtained from file secretkey . txt