Click here to Skip to main content
15,899,126 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MSXML load - not able to read chinese characters in path Pin
Gopi Nath19-Mar-18 23:18
Gopi Nath19-Mar-18 23:18 
QuestionGiven two numbers say a and b. Print their XOR after making the lengths of their binary representation equal by adding trailing zeros to the binary representation of smaller one. Pin
Tarun Jha25-Feb-18 10:14
Tarun Jha25-Feb-18 10:14 
AnswerRe: Given two numbers say a and b. Print their XOR after making the lengths of their binary representation equal by adding trailing zeros to the binary representation of smaller one. Pin
Richard MacCutchan25-Feb-18 21:54
mveRichard MacCutchan25-Feb-18 21:54 
You can get the length of each value (remember to save the originals) by repeatedly shifting one bit right until it is zero. You then shift the smaller value left by the difference between their lengths. That will give you two integers of the same length. All you need then is to create the XOR of the two and print it out.
AnswerRe: Given two numbers say a and b. Print their XOR after making the lengths of their binary representation equal by adding trailing zeros to the binary representation of smaller one. Pin
CPallini25-Feb-18 23:17
mveCPallini25-Feb-18 23:17 
GeneralRe: Given two numbers say a and b. Print their XOR after making the lengths of their binary representation equal by adding trailing zeros to the binary representation of smaller one. Pin
Richard MacCutchan25-Feb-18 23:32
mveRichard MacCutchan25-Feb-18 23:32 
GeneralRe: Given two numbers say a and b. Print their XOR after making the lengths of their binary representation equal by adding trailing zeros to the binary representation of smaller one. Pin
CPallini25-Feb-18 23:53
mveCPallini25-Feb-18 23:53 
QuestionStrange Debugging results Pin
ForNow24-Feb-18 16:36
ForNow24-Feb-18 16:36 
GeneralRe: Strange Debugging results Pin
Richard MacCutchan24-Feb-18 20:13
mveRichard MacCutchan24-Feb-18 20:13 
GeneralRe: Strange Debugging results Pin
ForNow24-Feb-18 20:38
ForNow24-Feb-18 20:38 
GeneralRe: Strange Debugging results Pin
Richard MacCutchan25-Feb-18 3:43
mveRichard MacCutchan25-Feb-18 3:43 
GeneralRe: Strange Debugging results Pin
ForNow25-Feb-18 5:15
ForNow25-Feb-18 5:15 
GeneralRe: Strange Debugging results Pin
Richard MacCutchan25-Feb-18 6:20
mveRichard MacCutchan25-Feb-18 6:20 
GeneralRe: Strange Debugging results Pin
ForNow25-Feb-18 6:56
ForNow25-Feb-18 6:56 
GeneralRe: Strange Debugging results Pin
ForNow25-Feb-18 8:28
ForNow25-Feb-18 8:28 
GeneralRe: Strange Debugging results Pin
Richard MacCutchan25-Feb-18 21:36
mveRichard MacCutchan25-Feb-18 21:36 
GeneralRe: Strange Debugging results Pin
ForNow26-Feb-18 1:53
ForNow26-Feb-18 1:53 
QuestionWhen an process is loaded Pin
_Flaviu22-Feb-18 23:15
_Flaviu22-Feb-18 23:15 
QuestionRe: When an process is loaded Pin
Richard MacCutchan22-Feb-18 23:18
mveRichard MacCutchan22-Feb-18 23:18 
AnswerRe: When an process is loaded Pin
_Flaviu22-Feb-18 23:35
_Flaviu22-Feb-18 23:35 
GeneralRe: When an process is loaded Pin
Richard MacCutchan22-Feb-18 23:48
mveRichard MacCutchan22-Feb-18 23:48 
QuestionCdialog CWnd* pParent null after passing this pointer to Cdialog constructer Pin
ForNow22-Feb-18 16:46
ForNow22-Feb-18 16:46 
AnswerRe: Cdialog CWnd* pParent null after passing this pointer to Cdialog constructer Pin
leon de boer22-Feb-18 20:25
leon de boer22-Feb-18 20:25 
GeneralRe: Cdialog CWnd* pParent null after passing this pointer to Cdialog constructer Pin
ForNow22-Feb-18 21:13
ForNow22-Feb-18 21:13 
GeneralRe: Cdialog CWnd* pParent null after passing this pointer to Cdialog constructer Pin
leon de boer22-Feb-18 21:26
leon de boer22-Feb-18 21:26 
QuestionCOM usage issue Pin
Fedrer21-Feb-18 21:23
Fedrer21-Feb-18 21: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.