Max Xor pair problem(code)

In this code we use if(bit==0) then we go left
but we don.t enter 0 and 1 how we can enter 0 and 1 by this code curr->left=new trinode();