24h購物| | PChome| 登入
與好友分享這篇文章

生成組合 (遞迴版本)

因為...用陣列當index太麻煩,也難懂,用遞迴幫忙吧!範例輸入:5 3   (C 5取3)範例輸出:1 2 31 2 41 2 51 3 41 3 51 4 52 3 42 3 52 4 53 4 5/*********************************************************/#include<stdio.h>#include<stdlib.h>int way[1001]={0};int n,m;void make...

新聞台: 摸索C語言 | 台長:來源不明
收件者E-mail:

請以分號區隔每個E-mail
例如:john@pchome.com.tw;mary@pchome.com.tw
信件標題:
與你分享這篇文章
訊息內容:
很精采的好文章!
如果你也喜歡,請轉寄給好友幫忙增加人氣吧!
您的名字:
來源不明
TOP