how do create a reference to a menber of an array : how can i make a reference of a member of an array in a class.
something like:

    class ASD{
    int bb[4];
    int& up = bb[0] // <- error need to const
    int& down= bb[1] // <- samething
    int& right= bb[2] // <- samething
    int& left= bb[3] // <- samething
    };

this is so i can do this:

    int main(){
    ASD asd();
    asd.bb[1] = 5;
    // or
    for(int i = 0; i < 4 ; i++){
    asd.bb[i] =i;
    }
    // and still be able to do this :
    asd.left = 50;
    //witch will be equal to asd.bb[3] = 50
    return 0;
    }

the firt person to debug this will be my hero :D!!!
can u?
thanks in advance

