Click here to Skip to main content
15,904,416 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to invert single bit in 32bit integer? Pin
9ine18-Apr-06 4:32
9ine18-Apr-06 4:32 
GeneralRe: how to invert single bit in 32bit integer? Pin
toxcct18-Apr-06 4:49
toxcct18-Apr-06 4:49 
GeneralRe: how to invert single bit in 32bit integer? Pin
9ine18-Apr-06 4:23
9ine18-Apr-06 4:23 
GeneralRe: how to invert single bit in 32bit integer? Pin
toxcct18-Apr-06 4:32
toxcct18-Apr-06 4:32 
GeneralRe: how to invert single bit in 32bit integer? Pin
9ine18-Apr-06 4:51
9ine18-Apr-06 4:51 
GeneralRe: how to invert single bit in 32bit integer? Pin
toxcct18-Apr-06 4:54
toxcct18-Apr-06 4:54 
GeneralRe: how to invert single bit in 32bit integer? Pin
David Crow18-Apr-06 5:14
David Crow18-Apr-06 5:14 
AnswerRe: how to invert single bit in 32bit integer? Pin
David Crow18-Apr-06 4:34
David Crow18-Apr-06 4:34 
9ine wrote:

0100101010011[1]001001010100111001 to invert 1 value bit
0100101010011[0]001001010100111001


Try:

unsigned int x = 0x4A9C9539; // 1001010100111001001010100111001
x &= ~0x40000;               // 0000000000001000000000000000000



"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

"There is no death, only a change of worlds." - Native American Proverb


GeneralRe: how to invert single bit in 32bit integer? Pin
9ine18-Apr-06 4:49
9ine18-Apr-06 4:49 
GeneralRe: how to invert single bit in 32bit integer? Pin
David Crow18-Apr-06 5:06
David Crow18-Apr-06 5:06 
GeneralRe: how to invert single bit in 32bit integer? Pin
toxcct18-Apr-06 4:50
toxcct18-Apr-06 4:50 
AnswerRe: how to invert single bit in 32bit integer? Pin
toxcct18-Apr-06 4:51
toxcct18-Apr-06 4:51 
QuestionProgram for creating Class diagrams/flowcharts Pin
hanno2518-Apr-06 2:47
hanno2518-Apr-06 2:47 
AnswerRe: Program for creating Class diagrams/flowcharts Pin
toxcct18-Apr-06 2:53
toxcct18-Apr-06 2:53 
AnswerRe: Program for creating Class diagrams/flowcharts Pin
Naveen18-Apr-06 2:54
Naveen18-Apr-06 2:54 
AnswerRe: Program for creating Class diagrams/flowcharts Pin
Mass Nerder18-Apr-06 2:59
Mass Nerder18-Apr-06 2:59 
AnswerRe: Program for creating Class diagrams/flowcharts Pin
Rage18-Apr-06 4:10
professionalRage18-Apr-06 4:10 
AnswerRe: Program for creating Class diagrams/flowcharts Pin
Gordon Brandly18-Apr-06 8:50
Gordon Brandly18-Apr-06 8:50 
QuestionProgramtically check if a file is open in a application Pin
jayart18-Apr-06 2:42
jayart18-Apr-06 2:42 
AnswerRe: Programtically check if a file is open in a application Pin
David Crow18-Apr-06 2:43
David Crow18-Apr-06 2:43 
AnswerRe: Programtically check if a file is open in a application Pin
ThatsAlok18-Apr-06 7:36
ThatsAlok18-Apr-06 7:36 
Question[Message Deleted] Pin
yang__lee18-Apr-06 2:37
yang__lee18-Apr-06 2:37 
AnswerRe: How to sent the font of static control Pin
David Crow18-Apr-06 2:44
David Crow18-Apr-06 2:44 
AnswerRe: How to sent the font of static control Pin
Naveen18-Apr-06 2:50
Naveen18-Apr-06 2:50 
GeneralRe: How to sent the font of static control Pin
yang__lee18-Apr-06 18:23
yang__lee18-Apr-06 18:23 

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.