Click here to Skip to main content
16,005,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: we can't use some API functions Pin
BlackDice5-Jul-05 2:49
BlackDice5-Jul-05 2:49 
GeneralRe: we can't use some API functions Pin
Blake Miller5-Jul-05 4:49
Blake Miller5-Jul-05 4:49 
GeneralRe: we can't use some API functions Pin
BlackDice5-Jul-05 5:01
BlackDice5-Jul-05 5:01 
GeneralRe: we can't use some API functions Pin
Blake Miller5-Jul-05 5:17
Blake Miller5-Jul-05 5:17 
General'^' operator Pin
LiYS4-Jul-05 22:52
LiYS4-Jul-05 22:52 
GeneralRe: '^' operator Pin
PravinSingh4-Jul-05 23:33
PravinSingh4-Jul-05 23:33 
GeneralRe: '^' operator Pin
LiYS4-Jul-05 23:48
LiYS4-Jul-05 23:48 
GeneralRe: '^' operator Pin
PravinSingh5-Jul-05 0:04
PravinSingh5-Jul-05 0:04 
YongSheng Li wrote:
when two operands(integer) XORed together, the outcome is the sum of them

No, It's not. XORing is different from SUMming. Let's take the example of your second line:
YongSheng Li wrote:
(4)00000100^(6)00000110 = (2)00000010

As I told in the previous post, the last bit in the result is OFF (as both are OFF in operands), the second last bit is ON (as the second last bit of one operand is OFF and that of the other is ON), again the 3rd last bit is OFF(as they both are ON in operands), remaining bits of the result are OFF as they are same (OFF) in both the operands.

If you apply the same logic to all your results, you'll find that there are no exceptions.

P.S. That's why "a^a" is zero, but "a+a" is not. Smile | :)


Regards,
Pravin
GeneralRe: '^' operator Pin
Bob Stanneveld5-Jul-05 0:25
Bob Stanneveld5-Jul-05 0:25 
GeneralRe: '^' operator Pin
LiYS5-Jul-05 0:04
LiYS5-Jul-05 0:04 
GeneralRe: '^' operator Pin
Bob Stanneveld5-Jul-05 0:31
Bob Stanneveld5-Jul-05 0:31 
GeneralRe: '^' operator Pin
Bob Stanneveld5-Jul-05 0:36
Bob Stanneveld5-Jul-05 0:36 
GeneralRe: '^' operator Pin
toxcct5-Jul-05 1:02
toxcct5-Jul-05 1:02 
GeneralRe: '^' operator Pin
Bob Stanneveld5-Jul-05 2:09
Bob Stanneveld5-Jul-05 2:09 
GeneralRe: '^' operator Pin
Toby Opferman5-Jul-05 8:32
Toby Opferman5-Jul-05 8:32 
GeneralRe: '^' operator Pin
David Crow5-Jul-05 5:05
David Crow5-Jul-05 5:05 
GeneralRe: '^' operator Pin
Toby Opferman5-Jul-05 6:45
Toby Opferman5-Jul-05 6:45 
GeneralRe: '^' operator Pin
Toby Opferman5-Jul-05 6:50
Toby Opferman5-Jul-05 6:50 
GeneralRe: '^' operator Pin
PJ Arends5-Jul-05 9:02
professionalPJ Arends5-Jul-05 9:02 
QuestionTo delete (remove) wizard created functions via IDE of VC++ 2003 ? Pin
Maxwell Chen4-Jul-05 22:29
Maxwell Chen4-Jul-05 22:29 
Generalchanging color of my form in vc++ Pin
smartymanav4-Jul-05 21:45
smartymanav4-Jul-05 21:45 
GeneralRe: changing color of my form in vc++ Pin
Alex Korchemniy4-Jul-05 21:54
Alex Korchemniy4-Jul-05 21:54 
GeneralRe: changing color of my form in vc++ Pin
David Spain5-Jul-05 18:43
David Spain5-Jul-05 18:43 
GeneralContext menu on Tree Pin
--------------------------------4-Jul-05 21:21
suss--------------------------------4-Jul-05 21:21 
GeneralRe: Context menu on Tree Pin
Bert [Otherside82] Derijckere5-Jul-05 0:31
Bert [Otherside82] Derijckere5-Jul-05 0:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.