# 递归实现十进制转二进制

/* binary.c -- prints integer in binary form */
#include <stdio.h>
void to_binary(unsigned long n);

int main(void)
{
unsigned long number;
printf("Enter an integer (q to quit):\n");
while (scanf("%ul", &number) == 1)
{
printf("Binary equivalent: ");
to_binary(number);
putchar('\n');
printf("Enter an integer (q to quit):\n");
}
printf("Done.\n");

return 0;
}

void to_binary(unsigned long n)   /* recursive function */
{
int r;
r = n % 2;
if (n >= 2)
to_binary(n / 2);
putchar('0' + r);

return;
}


#### GukiZ and Binary Operations(矩阵+二进制)

2015-06-16 20:22:03

#### ORACLE数值类型详解--NUMBER、BINARY_FLOAT、BINARY_DOUBLE、BINARY_INTEGER、FLOAT

2015-03-09 14:10:39

#### 实战BULK COLLECT(成批聚合类型)和数组集合type类型is table of 表%rowtype index by binary_integer .

2015-04-13 10:29:53

#### C ++ 编程思想(卷二) 笔记

2013-08-20 09:08:26

#### 数据结构--B 树、B+ 树、B* 树

2016-01-31 14:19:31

#### Java面试笔试题大汇总(最全+详细答案)

2017-06-20 21:20:27

#### （个人理解＋转载）ANSI/ASCII/UTF8/UNICODE/GB2312/UCS-2/UTF16-文本的编码格式

2013-12-25 02:12:24

#### Codeforces Round #307 (Div. 2)(二分||位运算+矩阵快速幂||分块)

2015-06-14 21:36:32

#### C++的iostream标准库介绍+使用详解(转)

2015-06-16 14:02:20

#### 【转载】yalmip + lpsolve + matlab 求解混合整数线性规划问题（MIP/MILP）

2016-11-25 17:05:38