Anybody understand these? I'm having the hardest time with them. Partly because I don't see a use for them :P
But what would be an example of a time when you would need to operate on a bit itself? As in, what is their purpose?
Thanks for any help :)

Most of the time you don't need to use the bitwise operations. The only time I've had to operate with bits is combining the modes in the ifstream/ofstream constructors:

ifstream in( "myfile.txt", ios::in | ios::binary ) ;

Also when I dealt with bitmaps and transparency, I had to use masking and it involved bitwise knowledge.

ok, thanks. Then I'll just read through them and get a basic understanding. I just wanted to know if I would be needing them quite often, so then I would need a full grasp of them.
But thanks!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.