代码也简单:
#include <stdlib.h> #include <stdio.h> void output_number_bin(const int number) { char string[64]; itoa(number, string, 2); printf("%d->%s\n", number, string); }
代码也简单:
#include <stdlib.h> #include <stdio.h> void output_number_bin(const int number) { char string[64]; itoa(number, string, 2); printf("%d->%s\n", number, string); }