Mohammed_Ahm 0 Newbie Poster

I have made a 6 bit Linear Feedback Shift Register, the user enters 6 bits as the initial card, this bitset is called inpSeq, the user also enters 6 bits representing the polynomial. A for loop examines this polynomial bitset for bit 1's, bit 1's position in the bit set is stored in a vector, namely xorArray. A bitset named bit, the sixth bit of it takes the value of the sixth bit in the inpSeq. A for loop XORs the bits which positions are stored in the xorArray. The result of this for loop are not correct, I think the problem is in this for loop.
Click Here