Click here to Skip to main content
15,910,471 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Program to Code Pin
Pathetic8-Jun-08 4:10
Pathetic8-Jun-08 4:10 
Questionbit manupolation Pin
MahaKh7-Jun-08 3:28
MahaKh7-Jun-08 3:28 
QuestionRe: bit manupolation Pin
Michael Schubert7-Jun-08 3:35
Michael Schubert7-Jun-08 3:35 
AnswerRe: bit manupolation Pin
MahaKh7-Jun-08 4:07
MahaKh7-Jun-08 4:07 
GeneralRe: bit manupolation Pin
Michael Schubert7-Jun-08 4:10
Michael Schubert7-Jun-08 4:10 
GeneralRe: bit manupolation Pin
MahaKh7-Jun-08 4:36
MahaKh7-Jun-08 4:36 
GeneralRe: bit manupolation Pin
CPallini7-Jun-08 4:58
mveCPallini7-Jun-08 4:58 
AnswerRe: bit manupolation Pin
rp_suman7-Jun-08 5:44
rp_suman7-Jun-08 5:44 
You can do this like, have two integers and a result integer.

For each input integer, check its bits from right to left(least significant bit to most)

If the bit value is one and same bit of resulting integer is zero, make resulting integer's bit to one.

If both are one then keep this bit's position, check which bit on left side of resulting integer value is zero, make it one and make other bits on right side until above kept position to zero.
Need to do for each integer input.

The process could be something like this or more easier, think yourself..

Thanks,
Suman

--
"Programming is an art that fights back!"

GeneralRe: bit manupolation Pin
MahaKh7-Jun-08 10:37
MahaKh7-Jun-08 10:37 
AnswerRe: bit manupolation Pin
Chris Losinger7-Jun-08 5:45
professionalChris Losinger7-Jun-08 5:45 
QuestionClearing client window Pin
Kwanalouie7-Jun-08 2:15
Kwanalouie7-Jun-08 2:15 
AnswerRe: Clearing client window Pin
Nelek7-Jun-08 2:19
protectorNelek7-Jun-08 2:19 
GeneralRe: Clearing client window Pin
Kwanalouie7-Jun-08 3:15
Kwanalouie7-Jun-08 3:15 
GeneralRe: Clearing client window Pin
Nelek7-Jun-08 3:23
protectorNelek7-Jun-08 3:23 
AnswerRe: Clearing client window Pin
Ravi Bhavnani7-Jun-08 11:27
professionalRavi Bhavnani7-Jun-08 11:27 
QuestionIs it possible to create C++ obj in C with new operator? Pin
Nandu_77b7-Jun-08 0:52
Nandu_77b7-Jun-08 0:52 
AnswerRe: Is it possible to create C++ obj in C with new operator? Pin
Gary R. Wheeler7-Jun-08 0:58
Gary R. Wheeler7-Jun-08 0:58 
QuestionRe: Is it possible to create C++ obj in C with new operator? Pin
Nandu_77b7-Jun-08 1:22
Nandu_77b7-Jun-08 1:22 
AnswerRe: Is it possible to create C++ obj in C with new operator? Pin
Gary R. Wheeler7-Jun-08 2:52
Gary R. Wheeler7-Jun-08 2:52 
GeneralRe: Is it possible to create C++ obj in C with new operator? Pin
Nandu_77b7-Jun-08 3:22
Nandu_77b7-Jun-08 3:22 
QuestionEsc Button use for Close the Dialog Box. Pin
Le@rner7-Jun-08 0:41
Le@rner7-Jun-08 0:41 
AnswerRe: Esc Button use for Close the Dialog Box. Pin
Gary R. Wheeler7-Jun-08 1:05
Gary R. Wheeler7-Jun-08 1:05 
GeneralRe: Esc Button use for Close the Dialog Box. Pin
Nelek7-Jun-08 2:13
protectorNelek7-Jun-08 2:13 
GeneralRe: Esc Button use for Close the Dialog Box. Pin
Gary R. Wheeler7-Jun-08 2:18
Gary R. Wheeler7-Jun-08 2:18 
GeneralRe: Esc Button use for Close the Dialog Box. Pin
Nelek7-Jun-08 2:22
protectorNelek7-Jun-08 2:22 

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.