I was trying to create a decimal to binary converter in c++ (and phailed misorably)
I wanted to ask, has anyone created a bynary to text and text to binary converter and could share the source? i want to build a program that can convert anything to anything.
A little research suggests that the '&' is being used as the boolean AND binary operator... That makes sense, so it's performing the bitwise AND operation on 'number' and whatever '(1<<i)' evaluates to.
I know '<<' as the insertion operator. '1' isn't a stream variable. Any ideas?