Bitwise operators

Reply

Join Date: Jul 2003
Posts: 117
Reputation: Iron_Cross is an unknown quantity at this point 
Solved Threads: 2
Iron_Cross's Avatar
Iron_Cross Iron_Cross is offline Offline
Junior Poster

Bitwise operators

 
0
  #1
Jul 7th, 2003
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
elitehackers.info
Today's Penny-Arcade!
Pain is weakness leaving the body!
Reply With Quote Quick reply to this message  
Join Date: Apr 2003
Posts: 46
Reputation: Dante Shamest is an unknown quantity at this point 
Solved Threads: 0
Dante Shamest's Avatar
Dante Shamest Dante Shamest is offline Offline
Light Poster

Re: Bitwise operators

 
0
  #2
Jul 13th, 2003
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.
Reply With Quote Quick reply to this message  
Join Date: Jul 2003
Posts: 117
Reputation: Iron_Cross is an unknown quantity at this point 
Solved Threads: 2
Iron_Cross's Avatar
Iron_Cross Iron_Cross is offline Offline
Junior Poster

Re: Bitwise operators

 
0
  #3
Jul 14th, 2003
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!
elitehackers.info
Today's Penny-Arcade!
Pain is weakness leaving the body!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC