main.cpp
//fn to look for the alphabet rotor/inverter points to

fn to look for the alphabet rotor/inverter points to
fn to look for the alphabet rotor / inverter points to
int rotor::look(int a, int bias)
{
    if (bias == 0)
    { 
        char tofind = alpha[a];
        int i;
        for (i = 0; i < 26; i++)
            if (left[i] == tofind)
                return i;
    }
    else if (bias == 1)
    {
        char tofind = left[a];
        int s = tofind;
        s -= 65;
        return s;
    }
}
int rotor :: look ( int a , int bias ) { if ( bias == 0 ) { char tofind = alpha [ a ] ; int i ; for ( i = 0 ; i < 26 ; i ++ ) if ( left [ i ] == tofind ) return i ; } else if ( bias == 1 ) { char tofind = left [ a ] ; int s = tofind ; s -= 65 ; return s ; } }
fn to look for the alphabet rotor/inverter points to
fn to look for the alphabet rotor / inverter points to
//bias 0 indicates it is a rotor
 //left=0,right=1{
 //bias 1 indicates it is a inverter
