Click here to Skip to main content
15,907,328 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I hope there is a Managed C++/CLR person left to help me with Parallel::For Pin
madusmacus27-Jul-22 4:24
madusmacus27-Jul-22 4:24 
QuestionUpgrade my skills... Pin
Kornfeld Eliyahu Peter21-Jul-22 0:45
professionalKornfeld Eliyahu Peter21-Jul-22 0:45 
AnswerRe: Upgrade my skills... Pin
Richard MacCutchan21-Jul-22 1:00
mveRichard MacCutchan21-Jul-22 1:00 
PraiseRe: Upgrade my skills... Pin
Kornfeld Eliyahu Peter21-Jul-22 1:12
professionalKornfeld Eliyahu Peter21-Jul-22 1:12 
GeneralRe: Upgrade my skills... Pin
Richard MacCutchan21-Jul-22 1:21
mveRichard MacCutchan21-Jul-22 1:21 
GeneralRe: Upgrade my skills... Pin
charlieg7-May-23 5:18
charlieg7-May-23 5:18 
GeneralRe: Upgrade my skills... Pin
Richard MacCutchan7-May-23 7:40
mveRichard MacCutchan7-May-23 7:40 
AnswerRe: Upgrade my skills... Pin
Graham Breach21-Jul-22 6:42
Graham Breach21-Jul-22 6:42 
PraiseRe: Upgrade my skills... Pin
Kornfeld Eliyahu Peter21-Jul-22 7:07
professionalKornfeld Eliyahu Peter21-Jul-22 7:07 
Questionpointers to functions Pin
Calin Negru16-Jul-22 0:28
Calin Negru16-Jul-22 0:28 
AnswerRe: pointers to functions Pin
Mircea Neacsu16-Jul-22 0:52
Mircea Neacsu16-Jul-22 0:52 
AnswerRe: pointers to functions Pin
Richard MacCutchan16-Jul-22 1:09
mveRichard MacCutchan16-Jul-22 1:09 
General[edited]Re: pointers to functions Pin
Calin Negru16-Jul-22 1:45
Calin Negru16-Jul-22 1:45 
GeneralRe: [edited]Re: pointers to functions Pin
Mircea Neacsu16-Jul-22 4:26
Mircea Neacsu16-Jul-22 4:26 
GeneralRe: [edited]Re: pointers to functions Pin
Calin Negru16-Jul-22 4:40
Calin Negru16-Jul-22 4:40 
GeneralRe: [edited]Re: pointers to functions Pin
Richard MacCutchan16-Jul-22 4:56
mveRichard MacCutchan16-Jul-22 4:56 
GeneralRe: [edited]Re: pointers to functions Pin
Calin Negru16-Jul-22 5:50
Calin Negru16-Jul-22 5:50 
GeneralRe: [edited]Re: pointers to functions Pin
Richard MacCutchan16-Jul-22 6:01
mveRichard MacCutchan16-Jul-22 6:01 
GeneralRe: [edited]Re: pointers to functions Pin
Calin Negru16-Jul-22 6:57
Calin Negru16-Jul-22 6:57 
GeneralRe: [edited]Re: pointers to functions Pin
Richard MacCutchan16-Jul-22 20:58
mveRichard MacCutchan16-Jul-22 20:58 
AnswerRe: pointers to functions Pin
Greg Utas16-Jul-22 7:36
professionalGreg Utas16-Jul-22 7:36 
QuestionConvert decimal to binary in C Pin
sahil Ranka14-Jul-22 1:14
sahil Ranka14-Jul-22 1:14 
I'm attempting to convert a decimal to binary such as 192 to 11000000. I simply need a basic code to do this yet the code I have so far doesn't work:

void dectobin(int value, char* output)
{
    int i;
    output[5] = '\0';
    for (i = 4; i >= 0; --i, value >>= 1)
    {
        output[i] = (value & 1) + '0';
    }
}

Prior to this, done thorough research on decimal to binary in cI and gone through some good Articles, to have a clear understanding of the topic.

Any help would be much appreciated!

modified 23-Sep-22 12:22pm.

AnswerRe: Convert decimal to binary in C Pin
Mircea Neacsu14-Jul-22 1:25
Mircea Neacsu14-Jul-22 1:25 
AnswerRe: Convert decimal to binary in C Pin
Richard MacCutchan14-Jul-22 1:29
mveRichard MacCutchan14-Jul-22 1:29 
GeneralRe: Convert decimal to binary in C Pin
sahil Ranka14-Jul-22 2:42
sahil Ranka14-Jul-22 2:42 

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.