15,922,512 members
Home / Discussions / C / C++ / MFC

C / C++ / MFC

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