2019年4月13日

(C/C++) Array 印出所有排列組合

摘要: 1 #include 2 #include 3 4 5 #define N 4 6 int arr[N] = { 1, 2, 3, 4}; 7 8 9 void swap(int *a, int *b) 10 { 11 int temp = *a; 12 *a = *b; 13 *b = temp; 14 } 15 16 void prem(int... 阅读全文

posted @ 2019-04-13 17:23 OO程式猿 阅读(3389) 评论(0) 推荐(0) 编辑

导航