打印二进制 void printbits(int n) { if(n >= 2) printbits(n/2); printf("%d",n%2); } 转载于:https://www.cnblogs.com/wjundong/p/11565442.html