A
Artemis Fowl
when i used bitset<> to accept data from the user, much to my surprise,
i got the wrong answer. After a bit of fiddling, figured out that the
data being entered was being consumed in reverse. I mean,
when 1010110001 was entered, the variable contained 1000110101 from the
lowest index to the highest.
Is there any way by which i can retain the order of input in bitset<>
variable itself?
Or am i asking for too much..
i got the wrong answer. After a bit of fiddling, figured out that the
data being entered was being consumed in reverse. I mean,
when 1010110001 was entered, the variable contained 1000110101 from the
lowest index to the highest.
Is there any way by which i can retain the order of input in bitset<>
variable itself?
Or am i asking for too much..