main.cpp
//fn to find the alphabet that the reflector reflects to

fn to find the alphabet that the reflector reflects to
fn to find the alphabet that the reflector reflects to
int reflector::reflect(int a)
{
    char tofind = alpha[a];
    int i;
    for (i = 0; i < 26; i++)
        if (wallleft[i] == tofind)
            return i;
}
int reflector :: reflect ( int a ) { char tofind = alpha [ a ] ; int i ; for ( i = 0 ; i < 26 ; i ++ ) if ( wallleft [ i ] == tofind ) return i ; }
fn to find the alphabet that the reflector reflects to
fn to find the alphabet that the reflector reflects to