Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~150 People Reached
Favorite Forums
Favorite Tags
c++ x 3
Member Avatar for lamphan

I have debugged and dec2bin function outputs "bin" value is right, but cout function somehow prints out wrong value. How to fix it? Thanks! [CODE] #include <iostream> #define bit 5 void dec2bin (int, int *); int main (void) { int bin[bit]; int num = 24; // example dec2bin(num, bin); for …

Member Avatar for Nick Evan
0
150