15,798,111 members
Home / Discussions / C / C++ / MFC

# C / C++ / MFC

 Re: [edited]Re: pointers to functions Calin Negru16-Jul-22 5:40 Calin Negru 16-Jul-22 5:40
 Re: [edited]Re: pointers to functions Richard MacCutchan16-Jul-22 5:56 Richard MacCutchan 16-Jul-22 5:56
 Re: [edited]Re: pointers to functions Calin Negru16-Jul-22 6:50 Calin Negru 16-Jul-22 6:50
 Re: [edited]Re: pointers to functions Richard MacCutchan16-Jul-22 7:01 Richard MacCutchan 16-Jul-22 7:01
 Re: [edited]Re: pointers to functions Calin Negru16-Jul-22 7:57 Calin Negru 16-Jul-22 7:57
 Re: [edited]Re: pointers to functions Richard MacCutchan16-Jul-22 21:58 Richard MacCutchan 16-Jul-22 21:58
 Re: pointers to functions Greg Utas16-Jul-22 8:36 Greg Utas 16-Jul-22 8:36
 Convert decimal to binary in C sahil Ranka14-Jul-22 2:14 sahil Ranka 14-Jul-22 2: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.
 Re: Convert decimal to binary in C Mircea Neacsu14-Jul-22 2:25 Mircea Neacsu 14-Jul-22 2:25
 Re: Convert decimal to binary in C Richard MacCutchan14-Jul-22 2:29 Richard MacCutchan 14-Jul-22 2:29
 Re: Convert decimal to binary in C sahil Ranka14-Jul-22 3:42 sahil Ranka 14-Jul-22 3:42
 Re: Convert decimal to binary in C CPallini14-Jul-22 3:36 CPallini 14-Jul-22 3:36
 Re: Convert decimal to binary in C sahil Ranka14-Jul-22 3:42 sahil Ranka 14-Jul-22 3:42
 Re: Convert decimal to binary in C CPallini14-Jul-22 4:14 CPallini 14-Jul-22 4:14
 Re: Convert decimal to binary in C Richard MacCutchan14-Jul-22 22:15 Richard MacCutchan 14-Jul-22 22:15
 Prey/predator c++ project sahil Ranka12-Jul-22 1:26 sahil Ranka 12-Jul-22 1:26
 Re: Prey/predator c++ project Richard MacCutchan12-Jul-22 1:29 Richard MacCutchan 12-Jul-22 1:29
 Re: Prey/predator c++ project Greg Utas12-Jul-22 2:20 Greg Utas 12-Jul-22 2:20
 How to share a pointer between an EXE and a DLL Mircea Neacsu11-Jul-22 14:50 Mircea Neacsu 11-Jul-22 14:50
 Re: How to share a pointer between an EXE and a DLL CPallini11-Jul-22 21:12 CPallini 11-Jul-22 21:12
 Re: How to share a pointer between an EXE and a DLL Mircea Neacsu12-Jul-22 5:01 Mircea Neacsu 12-Jul-22 5:01
 Re: How to share a pointer between an EXE and a DLL Victor Nijegorodov12-Jul-22 7:22 Victor Nijegorodov 12-Jul-22 7:22
 Re: How to share a pointer between an EXE and a DLL Mircea Neacsu12-Jul-22 8:52 Mircea Neacsu 12-Jul-22 8:52
 Re: How to share a pointer between an EXE and a DLL Victor Nijegorodov12-Jul-22 9:04 Victor Nijegorodov 12-Jul-22 9:04
 Re: How to share a pointer between an EXE and a DLL JudyL_MD12-Jul-22 12:31 JudyL_MD 12-Jul-22 12:31
 Last Visit: 31-Dec-99 19:00     Last Update: 9-Dec-23 13:54 Refresh ᐊ Prev1...48495051525354555657 Next ᐅ