can anyone please tell me how to return a bit for this problem

address variable size is 3 i.e 001 or 110 then it has to generate the corresponding bit from a 8 bit vector11111111 corresponding to the address bit

eg

address is 101

vector is 10101100

101 is 5 so it should return 5th bit i.e 0 in this case

void main()

{

const unsigned uN = 3;

const unsigned u2_to_N = 2 * 2 * 2;

CBooleanDataset MultiplexerDataset(uN + u2_to_N);

CColumnVector<bool> InputVector(uN + u2_to_N);

bool bOutput;

for(unsigned i = 0; i <= u2_to_N; i++)

{

the thing is later i would later should be able to increase n for bigger problems