943,509 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 5282
  • C RSS
Jul 7th, 2003
0

Bitwise operators

Expand Post »
Anybody understand these? I'm having the hardest time with them. Partly because I don't see a use for them
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
Similar Threads
Reputation Points: 46
Solved Threads: 2
Junior Poster
Iron_Cross is offline Offline
117 posts
since Jul 2003
Jul 13th, 2003
0

Re: Bitwise operators

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:

  1. 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.
Reputation Points: 13
Solved Threads: 0
Light Poster
Dante Shamest is offline Offline
46 posts
since Apr 2003
Jul 14th, 2003
0

Re: Bitwise operators

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!
Reputation Points: 46
Solved Threads: 2
Junior Poster
Iron_Cross is offline Offline
117 posts
since Jul 2003

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: Windows Messenger
Next Thread in C Forum Timeline: Algorithm for checking contiguous blocks





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC